Did you declare donator in player.java?
|
i used an TuT to add this donator rank got only one error
.\net\com\codeusa\net\packethandler\Commands.java: 439: unreachable statement
if (p.Donator == 1 && p.rights == 0) {
^
Note: .\net\com\codeusa\clanchat\Room.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Did you declare donator in player.java?
if (cmd[0].equals("yell")) {
for (Player player : Server.engine.players) {
if (player != null) {
if (p.muteType == 1 || p.muteTimer > 0) {
p.getActionSender().sendMessage(p, "You are muted and cannot yell until an administrator unmutes you.");
return;
if (p.Donator == 1 && p.rights == 0) {
player.getActionSender().sendMessage(player, "<img=3> "+p.username+": <col=ff0000>"+playerCommand.substring(5));
}
if (p.rights == 0 && p.Donator == 0) {
player.getActionSender().sendMessage(player, "<col=071CBF>[Player] <col=000000>"+p.username+": <col=ff0000>"+playerCommand.substring(5));
}
sorry putted wrong code in
omfg wait guys i made it lemme test and write if it doesnt work!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |