Skip to content

Commit 663a06f

Browse files
Merge remote-tracking branch 'origin/feature/es6-packets' into feature/es6-packets
2 parents fc18eb7 + 99e7fe0 commit 663a06f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/items/drop-item-plugin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ export const action: itemAction = (details) => {
1515
return;
1616
}
1717

18+
if(player.rights == 2) {
19+
player.sendMessage('Administrators are not allowed to drop items.', true);
20+
return;
21+
}
22+
1823
inventory.remove(itemSlot);
1924
player.outgoingPackets.sendUpdateSingleWidgetItem(widgets.inventory, itemSlot, null);
2025
player.playSound(soundIds.dropItem, 5);

0 commit comments

Comments
 (0)