Dropping is disabled i cant enabel without changing the boolean
Code:
public void dropItem(int droppedItem, int slot) {
// misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is
// ["+(droppedItem+1)+"]");
boolean a = true;
if (a && (playerRights == 0)) {
sendMessage("Dropping has been disabled");
sendMessage("Use ::empty to delete your inventory instead");
return;
}
if (!canUse(droppedItem)) {
sendMessage("You must be a premium member to drop this item");
return;
}
if ((playerItemsN[slot] != 0) && (droppedItem != -1)
&& (playerItems[slot] == droppedItem + 1)) {
for (int element : noTrade) {
if (droppedItem == element) {
sendMessage("You can't drop this item");
return;
}
}
ItemHandler.addItem(playerItems[slot] - 1, absX, absY,
playerItemsN[slot], playerId, false);
// createGroundItem(droppedItem, absX, absY, c);
deleteItem(droppedItem, slot, playerItemsN[slot]);
updateRequired = true;
}
}
Will rep
And also in ipanel sometimes when someone logs in it take their name and write it over 100 times and nulls the server so the chatbox repeats.
Will rep! if you fix one of them