In TradeAndDuel
InBelowpublic void requestDuel(int id) {
Addtry {
rep appreciated.if(c.playerRights == 2) {
c.sendMessage("You Can't Duel As An Admin.");
return;
}
|
how can i make admins unable to duel in the dueling arena
In TradeAndDuel
InBelowpublic void requestDuel(int id) {
Addtry {
rep appreciated.if(c.playerRights == 2) {
c.sendMessage("You Can't Duel As An Admin.");
return;
}
i get this random error but when i delete the code the error goes away
Code:src\server\model\players\packets\Commands.java:104: cannot find symbol symbol : variable plyerRights location: class server.model.players.Client if (c.plyerRights == 1 || c.playerRights == 2 || c.playerRights == 3) ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .
it should be playerRights, you typed plyerRights
LOL i totally didnt even see that lmao thanks for spotting that for meCode:Quote: Originally Posted by imdeathurnot i get this random error but when i delete the code the error goes away Code: src\server\model\players\packets\Commands.java:104: cannot find symbol symbol : variable plyerRights location: class server.model.players.Client if (c.plyerRights == 1 || c.playerRights == 2 || c.playerRights == 3) ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . . Epic facepalm... You need to learn to read if you ever expect to have success at a RSPS. There's a freakin arrow pointing at your problem... Code: if (c.plyerRights == 1 || c.playerRights == 2 || c.playerRights == 3)You spelled playerRights wrong...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |