Purpose: Making It So You Can't Use Commands In A Minigame:
Difficulty: Depends....
Assumed knowledge: None Really
Tested Server: Czar
Class Modified: Client.java
Okay, First Do The Step 2 Of This Tut: [Only registered and activated users can see links. ]
Right up to adding the void and making you're Boolean
Once you have made the boolean here's how we'll use it:
We Have To Make It So When You Are In The Area, You Cannot use Commands:
Find:
Code:
command.trim
You Should See this:
Code:
public void customCommand(String command) {
actionAmount++;
command.replaceAll("no-ip", "im***");
command.replaceAll("servegame", "im***");
command.trim();
if (command.startsWith...
Okay, Above
Code:
if (command.startsWith
Add:
Code:
if(isinHell() == false) {
Now Find The End Of You're Command Void And Before The Last }
Add this:
Code:
} else {
sendMessage("You Are In Hell And Cannot Use Commands Or Teleports");
}
And There You Have it, No more Commands In You're Minigame!
PS:You Can Make It For The Wilderness Aswell:
Replace the Line: