Okay, I don't know what I did but I got the plugin to work in game. It turns out that in the command I had some of the arguments mixed up. But the Material class only works in Minecraft and not directly from IntelliJ, how would I fix this?
Here is the error message in the console for the command in the server. And I should also say that when I made a similar class that didn't use Material, it worked fine, but I need to use the materials for the plugin to have its functionality.
[19:46:35 ERROR]: Command exception: /clutchblock...
Hello, I am making a plugin where I need to use functions like Material.getMaterial. I can import org.bukkit.Material but when I code with it, it doesn't work on my server even though no errors show in IntelliJ. The plugin is enabled on the server but it says an error occurred when trying to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.