KarimAKL's Recent Activity
-
KarimAKL liked timtower's post in the thread Player right click item event.
No, think it got changed in the past years, was throwing errors years ago.
Apr 16, 2024 at 7:18 AM -
KarimAKL replied to the thread Player right click item event.
@Greeniousity You reverted the change. You should still check if the item is (not) null. Add that back in (still as the first...
Apr 15, 2024 at 2:43 PM -
KarimAKL replied to the thread Player right click item event.
@timtower The ItemMeta#getDisplayName() method is annotated as @NotNull. I went to check the source code, and it should just return an...
Apr 15, 2024 at 1:39 PM -
KarimAKL replied to the thread Player right click item event.
@Greeniousity InventoryClickEvent#getCurrentItem() is @Nullable; it returns null when there is no item at the current slot. Make sure...
Apr 15, 2024 at 11:12 AM -
KarimAKL replied to the thread Player right click item event.
@Greeniousity Assuming you print a message to the console upon the event triggering and that messages isn't coming up (as mentioned...
Apr 15, 2024 at 7:57 AM -
KarimAKL replied to the thread Player right click item event.
@Greeniousity Yes, you're currently registering the listener instance in the constructor, but if you never create this instance, it will...
Apr 14, 2024 at 2:38 PM -
KarimAKL replied to the thread Player right click item event.
Did you create an instance of this class ("boosters") upon the plugin being enabled (i.e. the onEnable method of your main class)? By...
Apr 14, 2024 at 11:13 AM -
KarimAKL replied to the thread Getting value from chat.
@Rival54548545 Assuming you want player input from the chat, you can listen for the AsyncPlayerChatEvent. You can cancel the event to...
Apr 14, 2024 at 11:07 AM