mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-12 08:44:23 +00:00
GUI Finished, remove message when opening the GUI with /pp, note data range is now 0-24
This commit is contained in:
parent
98a570a236
commit
b1e23b6812
30 changed files with 934 additions and 117 deletions
|
@ -73,7 +73,7 @@ public class AddCommandModule implements CommandModule {
|
|||
return;
|
||||
}
|
||||
|
||||
if (note < 0 || note > 23) {
|
||||
if (note < 0 || note > 24) {
|
||||
LangManager.sendMessage(pplayer, Lang.DATA_INVALID_NOTE);
|
||||
return;
|
||||
}
|
||||
|
@ -143,10 +143,10 @@ public class AddCommandModule implements CommandModule {
|
|||
List<String> matches = new ArrayList<String>();
|
||||
|
||||
if (args.length <= 1) { // Effect name
|
||||
if (args.length == 0) matches = PermissionManager.getEffectsUserHasPermissionFor(p);
|
||||
else StringUtil.copyPartialMatches(args[0], PermissionManager.getEffectsUserHasPermissionFor(p), matches);
|
||||
if (args.length == 0) matches = PermissionManager.getEffectNamesUserHasPermissionFor(p);
|
||||
else StringUtil.copyPartialMatches(args[0], PermissionManager.getEffectNamesUserHasPermissionFor(p), matches);
|
||||
} else if (args.length == 2) { // Style name
|
||||
StringUtil.copyPartialMatches(args[1], PermissionManager.getStylesUserHasPermissionFor(p), matches);
|
||||
StringUtil.copyPartialMatches(args[1], PermissionManager.getStyleNamesUserHasPermissionFor(p), matches);
|
||||
} else if (args.length >= 3) { // Data
|
||||
ParticleEffect effect = ParticleEffect.fromName(args[0]);
|
||||
if (effect != null) {
|
||||
|
@ -154,7 +154,7 @@ public class AddCommandModule implements CommandModule {
|
|||
List<String> possibleValues = new ArrayList<String>();
|
||||
if (effect == ParticleEffect.NOTE) { // Note data
|
||||
if (args.length == 3) {
|
||||
possibleValues.add("<0-23>");
|
||||
possibleValues.add("<0-24>");
|
||||
possibleValues.add("rainbow");
|
||||
}
|
||||
} else { // Color data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue