Merge pull request 'UserPerm' (#150) from userPerm into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #150 Reviewed-by: Chaoscaot <chaoscaot@zohomail.eu>
Dieser Commit ist enthalten in:
Commit
4e76cd654b
@ -54,7 +54,7 @@ public class SchematicCommand extends SWCommand {
|
|||||||
@Register(value = "togglepublic", noTabComplete = true)
|
@Register(value = "togglepublic", noTabComplete = true)
|
||||||
public void togglePublicMode(Player player) {
|
public void togglePublicMode(Player player) {
|
||||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||||
if (!user.getUserGroup().isAdminGroup()) {
|
if (!user.hasPerm(UserPerm.ADMINISTRATION)) {
|
||||||
genericHelp(player);
|
genericHelp(player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren