mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-05 12:03:00 +00:00
Gui permission semantic changes under certain conditions
This commit is contained in:
parent
063de34095
commit
795da31e8f
2 changed files with 6 additions and 8 deletions
|
@ -39,7 +39,7 @@ public class DefaultCommandModule implements CommandModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean requiresEffects() {
|
public boolean requiresEffects() {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canConsoleExecute() {
|
public boolean canConsoleExecute() {
|
||||||
|
|
|
@ -28,13 +28,11 @@ public class GUICommandModule implements CommandModule {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PSetting.GUI_PRESETS_ONLY.getBoolean() && ParticleGroupPresetManager.getPresetGroupsForPlayer(pplayer.getPlayer()).isEmpty()) {
|
if (!PSetting.GUI_PRESETS_ONLY.getBoolean() && PermissionManager.getEffectNamesUserHasPermissionFor(pplayer.getPlayer()).isEmpty()) {
|
||||||
return;
|
|
||||||
} else if (PermissionManager.getEffectNamesUserHasPermissionFor(pplayer.getPlayer()).isEmpty()) {
|
|
||||||
if (byDefault) {
|
if (byDefault) {
|
||||||
LangManager.sendMessage(pplayer, Lang.COMMAND_ERROR_UNKNOWN);
|
|
||||||
} else {
|
|
||||||
LangManager.sendMessage(pplayer, Lang.COMMAND_ERROR_NO_EFFECTS);
|
LangManager.sendMessage(pplayer, Lang.COMMAND_ERROR_NO_EFFECTS);
|
||||||
|
} else {
|
||||||
|
LangManager.sendMessage(pplayer, Lang.COMMAND_ERROR_UNKNOWN);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +57,7 @@ public class GUICommandModule implements CommandModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean requiresEffects() {
|
public boolean requiresEffects() {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canConsoleExecute() {
|
public boolean canConsoleExecute() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue