Hello visitor,
today i tried to register class that implements CommandExecutor ( aka command class )
to my main class,
but because i'm developing in 1.20 paper plugin with paper-plugin.yml .
Iv'e been stuck for a LOT of time.
Please help.
Command Class:
package my.not.working.command;
import...
if i'm not wrong you havn't created the folder of the plugin.
make sure to execute this before the config file creation in the code:
if (!getDataFolder().exists()){
getLogger().info("Creating "+ getDataFolder() +" main directory ");
getDataFolder().mkdir()...
I found this more usefull :)
public class PluginName extends JavaPlugin {
public static PluginName instance;
@Override
public void onEnable() {
// Plugin shutdown logic
instance = this;
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
Source...
Hello visitor,
i'm trying to create login system plugin for 1.20 paper server,
so as a start i'm trying to display in the title "welcome to the server!" .
(after a subtitle "run /register <password> <password>")
this is my code:
@EventHandler(priority = EventPriority.HIGHEST)
public...
That's should be fixed, if not there is a trade with the Journeyman-level fletcher villagers buy 14 string for 1 emerald.
from emerald there is a lot of staff to go,
and any type of item dupe bug should be fixed,
no care what.
https://www.spigotmc.org/threads/cant-set-an-entities-health.233686/
^- based on this spigot forum, try:
p.setDamage(DamageAmount)
and try one method at the time to not crash your server.
Thanks for a quite response!
i found a way, just place in /resources
file called config.yml
and then add this piece of code:
if (!getDataFolder().exists()){
getDataFolder().mkdir();
saveDefaultConfig();
}
if The data folder of the plugin in /plugins...
I had a bit of issue with trying to put my config.yml in the plugin folder,
wait, how to create for the plugin folder?
I would like to get basic help / template to look on.
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.