#why it's not working :(

11 messages · Page 1 of 1 (latest)

honest tulip
#

i try to fix this code for almost 5 hours but nothing, it's a minecraft paper plugin for 1.19.2 can someone tell me why it's not working .thanks

south cedarBOT
#

This post has been reserved for your question.

Hey @honest tulip! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

#

<@&765578700724371486>

Requested by Redblazer#4376
crisp turtle
#

is there an error ?

honest tulip
# crisp turtle define not working

When I try to run it on intelli J, everything is fine, but when i try to use the command in the minecraft chat it only says the same command with on or off but it should activate the function of the plugin so I want to know if maybe is a code issue or maybe I setup wrong the plugin.yml or something else

crisp turtle
#

if the command is present that means that the issue is not with the setup but with the logic

#

have you checked if your if actually gets executed

honest tulip
crisp turtle
# honest tulip How can I check it?

For your intents and purposes using the Logger will be enough. Since you know that the onCommand is executed the only thing you need to check is the EventHandler. In there just log every level. If you can confirm that the code is executed but that the result doesn't match your expectations your logic is probably faulty. In that case share what you are trying to do so we can come up with a different solution.