Plugin is working and green but commands aren't working?

Status
This thread has been locked.

Ferrero

Manager
Banned
Feedback score
12
Posts
226
Reactions
110
Resources
0
So I have a really weird issue.

Recently made a simple healing plugin that heals players once the /heal command is executed.

It's supposed to send them a little message and heal them to full health, I exported the plugin and put it in my servers ftp.

The plugin's onEnable is shown in console, in-game when you do /pl it shows up as green, when you do /help healer it works but when you do /heal it doesn't work.

Here's a hastebin of my code:

https://www.hastebin.com/gitosusejo.java

Here's a hastebin of my Plugin.yml:

https://www.hastebin.com/manemunaye.css

SS of my Eclipse with all folders expanded:

d8540f790ad7e4be08bc0f5a23a0850f.png


I just started java development yesterday, sorry if it's a really noob question.
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Aerh

Deactivated
Feedback score
3
Posts
54
Reactions
94
Resources
0
In your command method, you check for a command named "Heal" yet in your plugin.yml you register a command called "hello"?
 

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7
So I have a really weird issue.

Recently made a simple healing plugin that heals players once the /heal command is executed.

It's supposed to send them a little message and heal them to full health, I exported the plugin and put it in my servers ftp.

The plugin's onEnable is shown in console, in-game when you do /pl it shows up as green, when you do /help healer it works but when you do /heal it doesn't work.

Here's a hastebin of my code:

https://www.hastebin.com/gitosusejo.java

Here's a hastebin of my Plugin.yml:

https://www.hastebin.com/manemunaye.css

SS of my Eclipse with all folders expanded:

d8540f790ad7e4be08bc0f5a23a0850f.png


I just started java development yesterday, sorry if it's a really noob question.
idk not a java dev, but your code says equals "Heal", so I think it might be case sensitive.
Try /Heal
 

Ferrero

Manager
Banned
Feedback score
12
Posts
226
Reactions
110
Resources
0
Fixed it, was a problem with my plugin.yml, forgot to update it. Thanks
 
Banned forever. Reason: Creating Multiple Accounts (Servium, https://builtbybit.com/members/nitr0us.68132/)

Wouterg

Premium
Feedback score
15
Posts
108
Reactions
60
Resources
1
Spigot's plugin development section would be a better place to ask help for programming in the future imho
 

IPyromaniac

✨Zealous Host / Developer ✨
Supreme
Feedback score
11
Posts
148
Reactions
54
Resources
0
Hi! I actively help some people with their plugins and java I'd be willing to help you out, if you're interested add me on discord

Discord: Britton B#0231
 

madk0ur

Music Producer
Premium
Feedback score
2
Posts
142
Reactions
26
Resources
0
Try using this format on your plugin.yml
main: com.ferrero.test.Main
version: 1.0.0
name: (pluginname)
commands:
—-heal:
——description: (put your description)



Remove the —
 
Status
This thread has been locked.
Top