That is saying that everyone EXCEPT the owner can stake. Look at the !
|
so in my tradeandduel.java the staking was disabled because of dupes, you couldnt input a item, so i've added this
for (int i : Config.ITEM_TRADEABLE) {
if(i == itemID) {
c.sendMessage("You can't stake this item.");
return true;
}
if (!c.playerName.equalsIgnoreCase("owner")) {
c.sendMessage("Do not get scammed! use the report section if you are!");
return true;
on this line:
what do I need to change it to so everyone can stake an item and not just "owner"if (!c.playerName.equalsIgnoreCase("owner")) {
That is saying that everyone EXCEPT the owner can stake. Look at the !
I don't exactly know what your whole method is showing so I couldn't tell you. I'd need to know what is being returned true/false.
Also put any code in tags for easier reads.
what this says is:Code:for (int i : Config.ITEM_TRADEABLE) { if(i == itemID) { c.sendMessage("You can't stake this item."); return true; } if (!c.playerName.equalsIgnoreCase("owner")) { c.sendMessage("Do not get scammed! use the report section if you are!"); return true;
if the item id is untradable for the boolean to return true
if the players name isnt "owner" then the boolean will return true as well.
by the looks of what you said, just remove the block statement:
and you'll get what you're looking forCode:if (!c.playerName.equalsIgnoreCase("owner")) { c.sendMessage("Do not get scammed! use the report section if you are!"); return true; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |