Search results

  1. MkdirGit

    Question register CommandExecutor class to my main class in paper-plugin.yml

    please give me a code example not only leaving me googeling to find what you had mean. sorry (;
  2. MkdirGit

    Question register CommandExecutor class to my main class in paper-plugin.yml

    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...
  3. MkdirGit

    Solved config cant be found

    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()...
  4. MkdirGit

    Solved How to use getConfig() not from the main class? (event listeners classes)

    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...
  5. MkdirGit

    Solved How to use getConfig() not from the main class? (event listeners classes)

    I'm stuck with getConfig() on listeners class. how to fix this? package example.example_for_u.JoinEvent; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import...
  6. MkdirGit

    Question how to display title to player?

    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...
  7. MkdirGit

    vulnerabilities remain?Still replicable.Infinite String Farm in Paper 1.19.4

    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.
  8. MkdirGit

    Question How to ensure Player loss at least 1 health?

    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.
  9. MkdirGit

    Question i'm trying to create config.yml to my plugin

    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...
  10. MkdirGit

    Question i'm trying to create config.yml to my plugin

    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.