since when this is a yell command?Code:if (command.equalsIgnoreCase("message")) { sM("There are currently " + PlayerHandler.getPlayerCount() + " players!");
|
Hi,
This is the command where i need sum help.
THEN I EDITED IT FOR BETTER AND NOW I DON*T GET ERRORS IT*S JUST NOT WORK WHEN I TYPE ::YELL IN-GAME
THIS WONT WORK
if (command.startsWith("yell") && command.length() > 5 && playerRights >= 0) {
String text = command.substring(8);
if (!muted) {
if (playerRights == 1) {
yell("[Mod] " + playerName + " - " + command.substring(5));
} else if (playerRights == 2) {
yell("[Admin] " + playerName + " - " + command.substring(5));
} if (playerName.equalsIgnoreCase("USER HERE")) {
yell("[Co-Owner] USER HERE - " + command.substring(5));
} if (playerName.equalsIgnoreCase("USER HERE")) {
yell("Owner USER HERE - " + command.substring(5));
}
} else {
sM("You are muted therefore you cannot yell.");
}
IF you can help me get that work i will rep u
since when this is a yell command?Code:if (command.equalsIgnoreCase("message")) { sM("There are currently " + PlayerHandler.getPlayerCount() + " players!");
Maybe you already have a command called yell
Na, just use this its a simple one
EDIT: just realized your using delta so that wont work... sorryCode:if (playerCommand.startsWith("yell")) { 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("[" + c.playerName + "]: " + playerCommand.substring(7)); } } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |