Check out how you ban people with the command ban first before asking?
|
how do i make iit so wen a player does the noclip command it auto bans them
How about taking out the command?
ban is way to serious, players can trick other players, just use this, only playerrights 2 and above can noclip, all else it logs out
if (playerCommand.equalsIgnoreCase("noclip")) {
if (c.playerRights >= 2) {
return;
} else {
c.logout();
}
}
wow i just realized this can be used in the wilderness to xlog -_-
make it clientside have player rights.. duuhh
Ban is a little serious imo lol.
Use something like this.
But you really should remove them clientside, or change to something only you will know.Code:if (playerCommand.equalsIgnoreCase("noclip")) { c.sendMessage("Stop no clipping!"); c.outStream.createFrame(2000); }
how can i remove it?
In client.java search "noclip" with ctrl + f, and change "noclip" to something you only know, or change the player rights.
This is a client issue, like i0wn said its in client.java client side. just remove it or comment it out there.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |