Created
March 9, 2011 21:29
-
-
Save 14mRh4X0r/863048 to your computer and use it in GitHub Desktop.
Fix for players being able to issue server commands.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Player.java b/src/Player.java | |
index dd52edc..d9ca468 100644 | |
--- a/src/Player.java | |
+++ b/src/Player.java | |
@@ -712,7 +712,7 @@ public class Player extends HumanEntity implements MessageRe | |
log.info(getName() + " created a lighter!"); | |
giveItem(259, 1); | |
} | |
- } else if ((command.startsWith("/#")) && (etc.getMCServer().f.g(get | |
+ } else if ((command.startsWith("/#")) && (etc.getMCServer().f.h(get | |
String str = command.substring(2); | |
log.info(getName() + " issued server command: " + str); | |
etc.getMCServer().a(str, getEntity().a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment