Explorar o código

Fixed /modify <name> command exploit again, still doesn't have a toggle though.

nossr50 %!s(int64=15) %!d(string=hai) anos
pai
achega
914ef8e8d0
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      vMinecraftCommands.java

+ 3 - 2
vMinecraftCommands.java

@@ -585,8 +585,9 @@ public class vMinecraftCommands{
 	public static int modifySplit(Player player, String[] args)
 	public static int modifySplit(Player player, String[] args)
 	{
 	{
 		//Exploit fix for people giving themselves commands
 		//Exploit fix for people giving themselves commands
-		if(args[1].equals("commands"))
-			return EXIT_SUCCESS;
+		if(args[2].equals("commands")){
+			return EXIT_FAIL;
+                }
 		return EXIT_CONTINUE;
 		return EXIT_CONTINUE;
 	}
 	}