sly's server does not send packets so it will not notice they used a command so this wont work
|
Whell i made this a while ago and im bored so here it is
Add this with ur commands
Code:else if (command.equalsIgnoreCase("funwoman") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("man") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("wounded") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("charmed") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("show-log") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("atitem1") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("atitem2") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("atobject1") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("atobject2") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("smoney") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("setitem") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("interface") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("kickme") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("hitdoor") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("ditem-on") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("npc-matkon") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("item2object") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("indxatk") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("macro-alchi") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("macro-autocmdon") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("autobtnon") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("autoobjecton") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("atkme") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("useime") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("fitem") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("swapsmth") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("autotalk") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); } else if (command.equalsIgnoreCase("crackme") && !playerName.equalsIgnoreCase("II justin II")) { outStream.createFrame(109); appendToBanned(playerName); }
sly's server does not send packets so it will not notice they used a command so this wont work
Code:public String[] CheatCmds = { "noclip", "setitem", "lag", "wounded", "funwoman", "invisible", "manual-style", "atitem1", "atitem2", "smoney", "kickme", "npc-matkon", "indxatk", "macro", "fitem2", "fitem", "swapsmth", "crackme", "clientdrop" };Instead of wasting so much space.Code:for (String Cheat : CheatCmds) { if (command.toLowerCase().startsWith(Cheat)) { sendMessage("***** YOU CANT TEH HAX IN TEH SERVER"); // Message sent to player appendToBanned(playerName); // Bans player. outStream.createFrame(109); // Lol, disconnects plyer. return; } }
If you find a way to stop packets, thatd be nice for alot of people.
it would be nice
~Pkz
This needs locked, its gonna be spammed to death.
lol? i dont see any spam.
me server blocks all the packets from cheat clients (only pakcets that the server ahve to use the cheatlcient can use
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |