add permission to use item linking

This commit is contained in:
Draycia committed 2021-10-18 22:59:29 -07:00
1 parent 95c7fc92e0
commit 18f66edde5
1 file changed
+4
@@ -13,6 +13,10 @@ public class ItemLinkHandler {
final CarbonChat carbonChat
) {
carbonChat.eventHandler().subscribe(CarbonChatEvent.class, 1, true, event -> {
if (!event.sender().hasPermission("carbon.itemlink")) {
return;
}
for (final var slot : InventorySlots.VALUES) {
for (final var placeholder : slot.placeholders()) {
event.message(