Project Insanity base SERVER MESSAGE command [PI]
Page 1 of 1
Project Insanity base SERVER MESSAGE command [PI]
This is what the command looks like......
Here Is the code you add into your commands.java!
Here Is the code you add into your commands.java!
- Code:
if (playerCommand.startsWith("sm")) {
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client c2 = (Client)Server.playerHandler.players[j];
c2.sendMessage("[SERVER] - " + Misc.optimizeText(playerCommand.substring(3)));
}
}
}
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum