mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-10 22:35:34 +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
|
@ -201,7 +201,7 @@ public class FixedCommandModule implements CommandModule {
|
|||
return;
|
||||
}
|
||||
|
||||
if (note < 0 || note > 23) {
|
||||
if (note < 0 || note > 24) {
|
||||
LangManager.sendMessage(p, Lang.FIXED_CREATE_DATA_ERROR);
|
||||
return;
|
||||
}
|
||||
|
@ -445,9 +445,9 @@ public class FixedCommandModule implements CommandModule {
|
|||
}
|
||||
|
||||
if (args.length == 5) {
|
||||
StringUtil.copyPartialMatches(args[4], PermissionManager.getEffectsUserHasPermissionFor(p), matches);
|
||||
StringUtil.copyPartialMatches(args[4], PermissionManager.getEffectNamesUserHasPermissionFor(p), matches);
|
||||
} else if (args.length == 6) {
|
||||
StringUtil.copyPartialMatches(args[5], PermissionManager.getStylesUserHasPermissionFor(p), matches);
|
||||
StringUtil.copyPartialMatches(args[5], PermissionManager.getStyleNamesUserHasPermissionFor(p), matches);
|
||||
} else if (args.length >= 7) {
|
||||
ParticleEffect effect = ParticleEffect.fromName(args[4]);
|
||||
if (effect != null) {
|
||||
|
@ -455,7 +455,7 @@ public class FixedCommandModule implements CommandModule {
|
|||
List<String> possibleValues = new ArrayList<String>();
|
||||
if (effect == ParticleEffect.NOTE) { // Note data
|
||||
if (args.length == 7) {
|
||||
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