ok and what's the proprem with the commands?
|
Source= project exile. code don't work!
[SPOIL]if (playerCommand.startsWith("mute")) {
try {
String pclient c2 = (Client)Server.playerHandler.players[i];
c2.sendMessage("You have been muted by: " + c.playerName);
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player Must Be Offline.");
}
}if (playerCommand.startsWith("givedonor") && c.isCool()) {
try {
String playerToMod = playerCommand.substring(10);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToMod)) {
Client c2 = (Client)Server.playerHandler.players[i];
c2.sendMessage("You have been given donator status by " + c.playerName);
c2.isDonator = 1;
c2.playerRights = 4;
c2.logout();
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player Must Be Offline.");
}
}
if (playerCommand.startsWith("skull") && c.isCool()) {
String name = playerCommand.substring(10);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(name)) {
Server.playerHandler.players[i].isSkulled = true;
((Client)Server.playerHandler.players[i]).getPA().requestUpdates();
}
}
}
}
if (playerCommand.startsWith("xteletome") && c.isCool()) {
try {
String playerToTele = playerCommand.substring(10);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToTele)) {
Client c2 = (Client)Server.playerHandler.players[i];
c2.sendMessage("You have been teleported to " + c.playerName);
c2.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel);
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player Must Be Offline.");
}
}
if (playerCommand.startsWith("teleall") && c.isCool()) {
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
Client c2 = (Client)Server.playerHandler.players[i];
c2.teleportToX = c.absX;
c2.teleportToY = c.absY;
c2.heightLevel = c.heightLevel;
c.sendMessage("You have teleported " + c2.playerName + " to you.");
c2.sendMessage("You have been teleported to " + c.playerName + "");
}
}
}
if (playerCommand.equals("massvote") && c.isCool()) {
for (int j = 0; j < Server.playerHandler.players.length; j++)
if (Server.playerHandler.players[j] != null) {
Client c2 = (Client)Server.playerHandler.players[j];
c2.getPA().sendFrame126("www.runelocus.com/toplist/details-19688-Joshpkz.html", 12000);
}
}[/SPOIL]
ok and what's the proprem with the commands?
Are they not working?
if (playerCommand.startsWith("mute")) {
try {
String playerToBan = playerCommand.substring(5);
Connection.addNameToMuteList(playerToBan);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
Client c2 = (Client)Server.playerHandler.players[i];
c2.sendMessage("You have been muted by: " + c.playerName);
c2.sendMessage(" " +c2.playerName+ " Got Muted By " + c.playerName+ ".");
break;
}
}
}
} catch(Exception e) {
c.sendMessage("Player Must Be Offline.");
}
}if (playerCommand.startsWith("alltome")) {
try {
for (int i = 0; i < Config.MAX_PLAYERS; i++) {
String name = playerCommand.substring(10);
if (Server.playerHandler.players[i] != null) {
Client other = (Client) Server.playerHandler.players[i];
other.getPA().movePlayer(c.getX(), c.getY(), c.heightLevel);
}
}
} catch(Exception e) {
c.sendMessage("Player Must Be Offline.");
}
}
format the code first so we can actually read it, this is fucking horrible
Well there I posted some of them
haha no problem
Working on trying to find the other hold up
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |