one second
If, your server is like mine your player rights should display as their given name.Code:if (command.startsWith("yell")) { PlayerHandler.messageToAll = ""+playerRights+""+playerName + ": " + command.substring(5); }
|
could anyone turn this delta into a czar for me?
Can anyone turn this into a czar code?
Code:if (command.startsWith("yell") && command.length() > 5 && playerRights >= 0) { String titles = ""; if (playerRights == 0) { titles = "[Player] "; } if (playerRights == 1) { titles = "[Mod] "; } if (playerRights == 2) { titles = "[Admin] "; } if (playerRights == 3) { titles = "[Co-Owner] "; } if (playerName.equalsIgnoreCase("name")) { titles = "[>>[OWNER]<<] "; } if (playerName.equalsIgnoreCase("erfg")) { titles = "[>>[Ex-Mod]<<] "; } yell(titles + "" + playerName + ": " + command.substring(5)); } }
one second
If, your server is like mine your player rights should display as their given name.Code:if (command.startsWith("yell")) { PlayerHandler.messageToAll = ""+playerRights+""+playerName + ": " + command.substring(5); }
Alright, thanks
im using a figmentscape source. can you just turn the code i have into a czar?
v4.5
Should work, you can't use player names for identifying the owner on figmentscape I don't thinkCode:if (command.startsWith("yell") && playerRights >= 0) { String titles = ""; if (playerRights == 0) { titles = "[Player] "; } if (playerRights == 1) { titles = "[Mod] "; } if (playerRights == 2) { titles = "[Admin] "; } if (playerRights == 3) { titles = "[Owner] "; } yell(titles + "" + playerName + ": " + command.substring(5)); } }
gave me 100 errors
Edit: Lowerd it to one.it said something about this line
Code:yell(titles + "" + playerName + ": "
Code:if (command.startsWith("yell") && playerRights >= 0) { String titles = ""; if (playerRights == 0) { titles = "[Player] "; } if (playerRights == 1) { titles = "[Mod] "; } if (playerRights == 2) { titles = "[Admin] "; } if (playerRights == 3) { titles = "[Owner] "; } yell(titles + "" + playerName + ": "+ command.substring(5)); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |