mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
add permission to use item linking
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user