From 9fbb148afb7783920e2e39f0edefccb27a71e47a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 14 Sep 2011 23:22:05 -0400 Subject: [PATCH] Fixed GameModeCommand not being limited to Ops by default. By: EvilSeph --- .../java/org/bukkit/util/permissions/CommandPermissions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/util/permissions/CommandPermissions.java b/paper-api/src/main/java/org/bukkit/util/permissions/CommandPermissions.java index 825375771c..74394735d0 100644 --- a/paper-api/src/main/java/org/bukkit/util/permissions/CommandPermissions.java +++ b/paper-api/src/main/java/org/bukkit/util/permissions/CommandPermissions.java @@ -103,7 +103,7 @@ public final class CommandPermissions { DefaultPermissions.registerPermission(PREFIX + "plugins", "Allows the user to view the list of plugins running on this server", PermissionDefault.TRUE, commands); DefaultPermissions.registerPermission(PREFIX + "reload", "Allows the user to reload the server settings", PermissionDefault.OP, commands); DefaultPermissions.registerPermission(PREFIX + "version", "Allows the user to view the version of the server", PermissionDefault.TRUE, commands); - DefaultPermissions.registerPermission(PREFIX + "gamemode", "Allows the user to change the gamemode of another player", PermissionDefault.TRUE, commands); + DefaultPermissions.registerPermission(PREFIX + "gamemode", "Allows the user to change the gamemode of another player", PermissionDefault.OP, commands); commands.recalculatePermissibles();