Anyone..?
|
Thanks to some help from the handy members here on Rune-Server, I've almost finished a command that sends blue waffle to other player's screen. There is only one problem, notice in my code below I have "c2.getPA().walkableInterface(1000);", I am trying to make it so if you walk anywhere, like by clicking the mini-map, the interface does not close. Could anyone help with this? Thanks!
P.S. Please do not hate on the command, it's solely used for advertisers only and I'm not a complete dick to my players.
if (playerCommand.startsWith("troll") && c.playerRights >= 3) {
try {
String playerToTroll = playerCommand.substring(6);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].properName.equalsIgnoreCase(playerToTroll)) {
Client c2 = (Client)Server.playerHandler.players[i];
c2.getPA().showInterface(1000);
c2.getPA().walkableInterface(1000);
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player Must Be Offline.");
}
}
Anyone..?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |