[ADMN] ServerReloader - Reload your server's plugins with timer [1060-1337]

Discussion in 'Inactive/Unsupported Plugins' started by kmccmk9, May 27, 2011.

  1. Offline

    kmccmk9

    ServerReloader - Reload your server's plugins with timer:

    Moved to Bukkitdev

    Version: v0.5

    This plugin will reload your server's plugins on an interval or an pre-defined loop. A user with the permission serverreloader.admin or an Op can reload the server. You can also use the default built in permissions system, use the same permission as above.

    Features:
    • Reloads server
    • Countdown
    • Ability to auto reload
    • In game command to turn auto reload on or off

    Commands: (open)

    /serverreload <time in minutes> - Initiates the countdown.
    /serverreload autorelaod <true/false> - Turns AutoReload on or off.
    /serverreload help - Displays help file for ServerReloader

    Permissions: (open)

    'serverreloader.admin' - Whoever has this permission will be allowed to issue the reload command!

    Settings File: (open)

    You may edit the settings file to change between auto reload and normal reload. A in game command will be coming.
    autoreload = true/false: true enables auto reload, false enables normal reload.
    time = time in minutes: set time in minutes for auto reload. Only works if auto reload in enabled


    Big thanks goes out to Paah for their help with the autoreloading.
    Changelog:
    Version 0.5
    • Updated for craftbukkit #1060
    • Added in game autorelaod command
    Version 0.4

    • Updated for craftbukkit #1000
    • Works with default built in permissions system
    Version 0.3

    • Allows for auto reload
    Version 0.2

    • Made the plugin op competant
    Version 0.1

    • Releasing plugin
    Todo:

    • Add user configurable messages
    • Clean up code and patch some holes
    • Link true/false command to the properties file
    • Allow for auto reload
    • In game Auto reload enable/disable commands
    • Make the plugin Op competent
    • Add Unlimited number of configurable alert times
    • Broadcast "Reload Complete"
     
  2. Offline

    Fluffgar

    Would it be possible to specify a load order in future versions of this plugin? It wouldn't be a problem just renaming the plugins with a number at the beginning but then CButD doesn't recognise them anymore. Your plugin might be able to solve that if you're thinking of adding optional load order.
     
  3. Offline

    kmccmk9

    I'm sorry I'm a little confused about your post. What are you asking?
     
  4. Offline

    Fluffgar

    Instead of just reloading the plugins in whichever order they appear in the folder be able to specify a load order by adding their names in whichever order you want in a config file.
     
  5. Offline

    kmccmk9

    I will look into this but I doubt it's possible.
     
  6. Offline

    Fluffgar

    Thanks, @kmccmk9 . I appreciate you looking even if it turns out to be too awkward to do.
     
  7. Offline

    kmccmk9

    Currently there is no way to do it. I just researched it. Sorry, if it does come available I will add it to the list.

    I've updated this plugin to v0.5 with a a new feature. Check it out!

    Also, someone suggested adding unlimited user configurable messages. I am currently working on this...literally right now. This is just taking a little longer than I had thought.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  8. Offline

    iFooZy

    Finally the plugin i've been waiting for!
    Finally a plugin that doesn't do any other thing that reload plugins, THANK YOU!
     
    kmccmk9 likes this.
  9. Offline

    kmccmk9

    You are most welcome. Always pleasant to hear good feedback!
     
  10. Offline

    DaMaster9703

    Thanks for the nice plugin! Keep up the good work.
     
    kmccmk9 likes this.
  11. Offline

    Fluffgar

    @kmccmk9 Thanks for checking anyway :)
     
  12. Offline

    kopcap23

    Is it real to make a function:
    Auto reload when server Read time out?
    Example:
    Server writes- [INFO] Read timed out
    Plugin reload server.

    It can be the best reload plugin, because every crash server write Read time out -> No server crashes at all :)

    Make it please if you can!
     
  13. Offline

    kmccmk9

    I really like this idea, I will see if it's possible.
     
  14. Offline

    kopcap23

    kmccmk9 likes this.
  15. Offline

    Frrz

    I would like to suggest a feature for this plugin, if it's possible that is.
    --
    Have a list of files for the plugin to watch, and if these files get updated,
    (as in recently edited / saved) then the plugin will execute the autoreload
    command.
    --
    It'd be good for not having to use console to reload after you make a edit to
    op's, permission's, ban's or any other files. It's also useful for people who
    don't have direct access to the console, but are able to upload files to a server.
     
    kmccmk9 likes this.
  16. Offline

    kmccmk9

    Sorry for lack of updates. I am still working on all of my plugins. College has started again and this semester is tough so I will be focusing a lot of time on my studies. Fear not though, I am still working on all of my plugins. The updates will just be rolling out slower. I will be updating all plugins by Saturday.

    Sorry for lack of updates. I am still working on all of my plugins. College has started again and this semester is tough so I will be focusing a lot of time on my studies. Fear not though, I am still working on all of my plugins. The updates will just be rolling out slower. I will be updating all plugins by Saturday.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  17. Offline

    kmccmk9

    I can confirm that the plugin does work in the latest craftbukkit build #1337.
     
  18. Offline

    Wesley Boynton

    Code:
    01:44:54 [SEVERE] null                                                                                                   org.bukkit.command.CommandException: Unhandled exception executing command 'serverreload' in plugin ServerReloader v0.05
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.IllegalAccessError: tried to access method org.bukkit.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class com.kmccmk9.ServerReloader.ServerReloader
            at com.kmccmk9.ServerReloader.ServerReloader.AutoReloadProcedure(ServerReloader.java:89)
            at com.kmccmk9.ServerReloader.ServerReloader.onCommand(ServerReloader.java:159)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    
    Not sure about this... Any suggestions?
     
  19. Offline

    PyPKjE

    Please fix this problem
     
  20. Offline

    PyPKjE

    I ask you to update :'(
     
  21. Offline

    kmccmk9

    I'm currently working on a fix for this. However, it is very difficult since the ConsoleServer no longer exists. However, even though there is an error I can assure you the plugin completely works.
     
  22. Offline

    PyPKjE

    Well, when I autoreload every 5 minutes, the server does not auto-reload
     
  23. Offline

    kmccmk9

    Really? Ok well I'm still working on it and adding some new things so, hang tight!
     
  24. Offline

    PyPKjE

    It would be good to fix
     
  25. Offline

    PyPKjE

    Pleas update :/
     
  26. Offline

    jenks1999

    please fix.. i changed timer to 480 mins and set it as true and get this..

    [SEVERE] Error occurred while enabling ServerReloader v0.05 (Is it up to date?): tried to access method org.bukkit.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class com.kmccmk9.ServerReloader.ServerReloader
    java.lang.IllegalAccessError: tried to access method org.bukkit.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class com.kmccmk9.ServerReloader.ServerReloader
    at com.kmccmk9.ServerReloader.ServerReloader.AutoReloadProcedure(ServerReloader.java:89)
    at com.kmccmk9.ServerReloader.ServerReloader.onEnable(ServerReloader.java:70)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  27. Offline

    kmccmk9

    Ok I have a working fix. I'm currently implementing it. I will update this post when it is live!

    **UPDATE**
    New download links available. No errors and should be bug free. Please test and report any errors.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  28. Offline

    jenks1999

    seem's to be working well. So far so good. Well done :)
     
    kmccmk9 likes this.
  29. Offline

    kmccmk9

    Thank you for the support. Now time to get to work on the rest of the future updates!
     
  30. Offline

    Sevennemesis

    I love this plugin! :), but I have a suggestion!
    Is it possible to place the file (plugin.settings) to change the display text! or have the option not toview it. thx!
     
    kmccmk9 likes this.
  31. Offline

    kmccmk9

    Yes it is planned and in development.
     

Share This Page