Spigot Plugin Manager Reloaded 1.0.2

Manage your plugins with ease

  1. lvletei submitted a new resource:

    Plugin Manager Reloaded - Manage your plugins with ease

    Read more about this resource...
     
  2. lvletei updated Plugin Manager Reloaded with a new update entry:

    Rewrite Launch

    Read the rest of this update entry...
     
  3. is this stil lbeing developed?
    I get a majour problem with it resetting everything once and a while.
     
  4. Hey, sorry for the super late response! Real life got in the way, and I had to take a bit of a hiatus. Yes, this absolutely is still being developed. Tell me what's going on, and I'll try to get that fixed and pushed out quickly. What do you mean by resetting everything? As in the server itself crashes and restarts when you reload a plugin?
     
  5. No idea if it's just me and it's missing something.

    I get this error:


    Code (Text):
    18:34:05 [WARNING] Error enabling plugin PluginManagerReloaded
    java.lang.NoClassDefFoundError: org/bukkit/plugin/java/JavaPlugin
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:34)
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:27)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:304)
        at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:212)
        at net.md_5.bungee.BungeeCord.start(BungeeCord.java:247)
        at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:55)
        at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.plugin.java.JavaPlugin
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:53)
        at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:27)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 18 more
    I'm using the 2nd latest Bungee version, it didn't work with a few other prev versions ago either so I figured I'd report it:
    Enabled BungeeCord version git:BungeeCord-Bootstrap:1.8-SNAPSHOT:"19f2e7b":1090
     
  6. When I type in command "/reload" all the plugin that I disabled turn back in to enabled. How do I suppose to fix this?
     
  7. I'll see if I can get a patched and updated version out sometime this week. I'm currently investigating the bungee problem, and will keep you updated.
    As for the '/reload' thing, that's the native behaviour of spigot and bukkit. When I post the updated version I'll try include a way to override that and prevent them from loading. I had never thought of having something like that. Thanks for the feedback!
     
  8. hello its possible to add this to your plugin?

    Code (Text):
    //in onenable
    getCommand("pluginmanager").setTabCompleter(new TabCompleter_pm(this));


    public class TabCompleter_pm implements TabCompleter {
        List<String> params = Arrays.asList("disable","enable","sreload","reload","unload","show");
        private boolean checkparam(String args0) {
            for (String param:params) {
                if (args0.equalsIgnoreCase(param)) return true;
            }
            return false;
        }
        @Override
        public List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {
            if (args.length == 1 && args[0].equals("")) return params;
            else if (args.length >= 1) {
                if (checkparam(args[0])) {
                    List<String> list = new ArrayList<>();
                    for (Plugin pl:sm.getServer().getPluginManager().getPlugins()){
                        String plname = pl.getDescription().getName();
                        if (args.length == 1 || args[1].equals("") || plname.startsWith(args[1])) list.add(plname);
                    }
                    return list;
                }
            }
            return null;
       
        }

    }
     
    #8 Flashlight, Feb 25, 2016
    Last edited: Mar 11, 2016
  9. Added, and staged for next release. Thanks for the request and code suggestion.
     
  10. This is also added and staged for next release. Whereas /reload is a bad idea, you can lead a horse to water but you can't make it drink.
     
  11. Are you making a 1.9 release soon?
     
  12. lvletei updated Plugin Manager Reloaded with a new update entry:

    1.9, tabcomplete, and more

    Read the rest of this update entry...
     
    • Agree Agree x 1
  13. also when you /pm reload <plugin>
    it unloads but fails to reload as the plugin gets marked as .unloaded
     
    • Agree Agree x 1
  14. me to :p (version 1.0.2)

    and this when start the serv:
    Code (Text):
    [15:21:39 INFO]: [PluginManagerReloaded] Enabling PluginManagerReloaded v1.0.2
    [15:21:39 INFO]: [PluginManagerReloaded] Checking for a new version...
    [15:21:40 ERROR]: Error occurred while enabling PluginManagerReloaded v1.0.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/mcstats/Metrics
            at com.jadeningle.PluginManager.PluginManagerReloaded.onEnable(PluginManagerReloaded.java:75) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:361) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:321) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:411) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:376) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:331) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:269) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
    Caused by: java.lang.ClassNotFoundException: org.mcstats.Metrics
            at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_77]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.9.jar:git-Spigot-90839e6-8e5eab2]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_77]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_77]
            ... 12 more
     
    #15 Flashlight, Mar 25, 2016
    Last edited: Mar 25, 2016
    • Agree Agree x 3
  15. Right-o. I'm working on fixing those issues. I totally forgot about testing the reload, so, that's my bad. I'll hopefully have a new version out either today or tomorrow. Thanks for the heads up!
     
    • Like Like x 1
  16. After unloading a plugin it renamed the file on disk from 'SomePlugin.jar' to 'SomePlugin.jar.unloaded'. This is bad because when the server is stopped it does not restore the file name. I expect 'unload' to be a runtime change not something permanent. Renaming the file on disk is also bad even if you plan to restore it because this won't happen if the server crashes.

    Please don't rename my plugins..

    Is there a github where I can submit patches?

    Also, a number of errors in 1.0.2:

    Code (Text):
    2016-04-04 16:19:27 [WARN] org.apache.commons.lang.UnhandledException: Plugin PluginManagerReloaded v1.0.2 generated an exception while executing task 8
        at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
        at org.mcstats.Metrics.postPlugin(Metrics.java:357)
        at org.mcstats.Metrics.access$4(Metrics.java:350)
        at org.mcstats.Metrics$1.run(Metrics.java:245)
        at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71)
        at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
        ... 3 more

    After patching this error:

    Code (Text):
    2016-04-04 16:24:50 [ERROR] Error occurred while enabling PluginManagerReloaded v1.0.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/mcstats/Metrics
    at com.jadeningle.PluginManager.PluginManagerReloaded.onEnable(PluginManagerReloaded.java:75) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:361) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:321) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:411) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:376) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:331) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:269) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:527) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
    Caused by: java.lang.ClassNotFoundException: org.mcstats.Metrics
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_45]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_45]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_45]
    ... 12 more

    After disabling metrics and typing 'plm' from the console:

    Code (Text):
    2016-04-04 16:29:50 [WARN] Unexpected exception while parsing console command "plm"
    org.bukkit.command.CommandException: Unhandled exception executing command 'plm' in plugin PluginManagerReloaded v1.0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:645) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchServerCommand(CraftServer.java:631) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.DedicatedServer.aL(DedicatedServer.java:438) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:401) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
    Caused by: java.lang.NullPointerException
            at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:324) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at com.jadeningle.PluginManager.PluginManagerCommand.onCommand(PluginManagerCommand.java:48) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            ... 8 more
     

    When typing 'plm' from inside the game:

    Code (Text):
    2016-04-04 16:33:01 [ERROR] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'plm' in plugin PluginManagerReloaded v1.0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:645) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.PlayerConnection.handleCommand(PlayerConnection.java:1350) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1185) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]
            at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]
            at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
    Caused by: java.lang.NullPointerException
            at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:324) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            at com.jadeningle.PluginManager.PluginManagerCommand.onCommand(PluginManagerCommand.java:48) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.9-R0.1-SNAPSHOT.jar:git-Spigot-d20369f-7fc5cd8]
            ... 15 more
     
     
    #17 Zhro, Apr 4, 2016
    Last edited: Apr 4, 2016
  17. Continue your good work, and if you need help do me a sign.
     
  18. Tried to unload GroupManager, /plm unload GroupManager (tried also /plm unload GroupManager.jar).
    Code (Text):
    07.04 13:15:26 [Server] INFO Caused by: java.lang.NullPointerException
    07.04 13:15:26 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:397) ~[spigot-1.8.8.jar:git-Spigot-76236cb-9cd1111]
    07.04 13:15:26 [Server] INFO at com.jadeningle.PluginManager.Utils.Control.enablePlugin(Control.java:78) ~[?:?]
    07.04 13:15:26 [Server] INFO at com.jadeningle.PluginManager.Utils.Control.unloadPlugin(Control.java:299) ~[?:?]
    07.04 13:15:26 [Server] INFO at com.jadeningle.PluginManager.PluginManagerCommand.unloadPluginCommand(PluginManagerCommand.java:189) ~[?:?]
    07.04 13:15:26 [Server] INFO at com.jadeningle.PluginManager.PluginManagerCommand.onCommand(PluginManagerCommand.java:61) ~[?:?]
    07.04 13:15:26 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8.jar:git-Spigot-76236cb-9cd1111]
    I hope there's everything you need to know! Oh BTW the PLM version, 1.0.2.
    EDIT: Did the job! Unloaded GroupManager but got the error though.
     
    #19 Juubes, Apr 7, 2016
    Last edited: Apr 7, 2016
  19. hello, its me, any news about the fix?