[ADMN] OKReload v1.1.1 - Lightweight/Permissions-based /reload replacement [1.0.0-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Kalman Olah, Aug 2, 2011.

  1. Offline

    Kalman Olah

    OR - OKReload
    by Kalman Olah​
    Latest version: 1.1.1 ( Download )​
    Would you like to buy me a drink? some useless stuff from Amazon? a car?​
    [​IMG]
    What is OKReload?
    OKReload is a lightweight plugin manager that currently supports plugin reloading and toggling. OKReload supports the built-in bukkit permissions API, Permissions, GroupManager or PermissionsEx.​
    Where can I get it?
    The latest version can always be found here.​
    OKReload also comes with an auto-updater that will download updates to the /plugins/OKReload/update/ folder.​
    How do I set up OKReload?
    Just drop it in your server's /plugins/ directory.​
    Usage & Command information
    Commands:​
    Credits & Thanks
    Thanks to @bocaj812 , it was his plugin request. Sort of.​
    Changelog
    Version 1.1.1​
    • Updated auto-updater.
    • Cleaned code.
    Version 1.1.0​
    • Renamed commands to avoid conflicts.
    Version 1.0.2​
    • Added /listplugins command. Guess what it does?
    • Added okreload.messages node. This will notify you of any plugin toggles/reloads.
    Version 1.0.1​
    • Minor Bugfix.
    Version 1.0.0​
    • Initial release.
     
    bocaj812 likes this.
  2. Offline

    Zottelchen

    i like it. please make a configurable message when it reloads...
    something like
    "Reload pending..." in red
    and then
    "Reload complete" in green
     
  3. Offline

    Kalman Olah

    There are messages when it reloads.
    cappy.jpg
    Did you mean a global message? Or just a configurable one?
     
  4. Offline

    spunkiie

    Hmm, for reloading specific plugins, does the plugin author needs to ADD something special to enable/support it ?
     
  5. Offline

    Kalman Olah

    Nope. Everything is already in the Bukkit API.
     
  6. Offline

    spunkiie

    Nice :)

    This API is new, right ? I remember an old plugin that did the same, but some plugins didn't work with it and the dev always told that the author needed to add some kind of 'support' for reloading to work.
     
  7. Offline

    Kalman Olah

    Not that I know. /reload has been in bukkit for a while. All a plugin "reload" is, is a disable, and an enable afterwards. Nothing special.
     
  8. Offline

    bocaj812

    Amazing dude
     
  9. Offline

    Mentalist

    When I do /refresh I get internal error, here's the error in the console
    (This Is Read the from bottom up):

    Code:
    04.08 23:10:57 [Server] INFO     ... 12 more
    04.08 23:10:57 [Server] INFO     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    04.08 23:10:57 [Server] INFO     at me.kalmanolah.or.OKCmd.onCommand(OKCmd.java:186)
    04.08 23:10:57 [Server] INFO     at me.kalmanolah.or.OKmain.CheckPermission(OKmain.java:154)
    04.08 23:10:57 [Server] INFO Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    04.08 23:10:57 [Server] INFO     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    04.08 23:10:57 [Server] INFO     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    04.08 23:10:57 [Server] INFO     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    04.08 23:10:57 [Server] INFO     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    04.08 23:10:57 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'refresh' in plugin OKReload v1.0.1
    04.08 23:10:57 [Server] SEVERE null
    
     
  10. Offline

    Kalman Olah

    What Permissions plugin do you currently have installed?
     
  11. Offline

    Mentalist

    I have permissions 2.7, haven't updated to 3 yet.

    Even if I just do /refresh
    without putting a plugin I still get Inter Error.
     
  12. Offline

    Kalman Olah

    That's because OKReload works with Permissions 3.1.x, PermissionsEx, GroupManager and Bukkit's permissions. There is currently no support for Permissions 2.7.
     
  13. Offline

    Mentalist

    Okay Thank for the reply, I'll have to update permissions soon.

    PS: Love your plugins!
     
  14. Offline

    Plague

    Sorry for the delay in submission approvals, I've been away for a while.
     
  15. Offline

    bocaj812

    list of plugins? just as a reference, some plugins have crazy names... /list
     
  16. Offline

    Hubok

    Are these global messages? If not, could you add a Permissions node to display the message to them?

    P.S. Great plugin, will install tommorow. :)
     
  17. Offline

    Kalman Olah

    Will add these in a moment :)

    Version 1.0.2​
    • Added /listplugins command. Guess what it does?
    • Added okreload.messages node. This will notify of any plugin toggles/reloads.
    @Hubok
    @bocaj812

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

    bocaj812

    I don't have a clue what it does... oh well...
     
  19. Offline

    Hubok

    Thanks you for taking my suggestion!
     
  20. Offline

    Pixiio

    Great plugin, but it doesnt work. If i reload, people get internal server error
     
  21. Offline

    Cosmic Break

    i wish it wasnt case sensitive...
     
  22. Offline

    Kalman Olah

    Can you paste the error?
     
  23. Offline

    Zottelchen

  24. I'm using PermissionsBukkit and SuperpermsBridge. Every OKReload command throws an "unhandled exception" error, unless I disable SuperpermsBridge. I think SuperpermsBridge pretends to be Permissions 2.7, so that is probably the problem.

    server.log:
    Code:
    2011-08-17 19:45:52 [INFO] Starting minecraft server version Beta 1.7.3
    2011-08-17 19:45:52 [INFO] Loading properties
    2011-08-17 19:45:52 [INFO] Starting Minecraft server on *:25565
    2011-08-17 19:45:52 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    2011-08-17 19:45:52 [INFO] [SuperpermBridge] Superperm/Permissions bridge initialized
    2011-08-17 19:45:53 [INFO] Preparing level "world"
    2011-08-17 19:45:53 [INFO] Preparing start region for level 0 (Seed: 2359354853839225022)
    2011-08-17 19:45:54 [INFO] Preparing start region for level 1 (Seed: 2359354853839225022)
    2011-08-17 19:45:54 [INFO] Preparing spawn area: 60%
    2011-08-17 19:45:55 [INFO] PermissionsBukkit v1.1 is now enabled
    2011-08-17 19:45:55 [INFO] [SuperpermBridge] Superperm/Permissions bridge enabled
    2011-08-17 19:45:55 [INFO] [PermissionsAttributeProvider] Enabled!
    2011-08-17 19:45:55 [INFO] [HELP] 0 extra help entries loaded
    2011-08-17 19:45:55 [INFO] [HELP] Permissions enabled using: Permissions v2.7.7
    2011-08-17 19:45:55 [INFO] [HELP] 0.3.2 enabled
    2011-08-17 19:45:55 [INFO] AutoHelp version 0.2 is enabled!
    2011-08-17 19:45:55 [INFO] WorldEdit 4.6 enabled.
    2011-08-17 19:45:55 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-17 19:45:55 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world) Single session is enforced.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world) TNT ignition is PERMITTED.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world) Lighters are PERMITTED.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world) Fire spread is UNRESTRICTED.
    2011-08-17 19:45:55 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-08-17 19:45:55 [INFO] WorldGuard: (world_nether) Single session is enforced.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world_nether) TNT ignition is PERMITTED.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world_nether) Lighters are PERMITTED.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world_nether) Lava fire is blocked.
    2011-08-17 19:45:55 [INFO] WorldGuard: (world_nether) Fire spread is UNRESTRICTED.
    2011-08-17 19:45:55 [INFO] WorldGuard: Loaded configuration for world 'world_nether"
    2011-08-17 19:45:55 [INFO] WorldGuard: 0 regions loaded for 'world'
    2011-08-17 19:45:55 [INFO] WorldGuard: Unable to register missing event type SNOW_FORM
    2011-08-17 19:45:55 [INFO] WorldGuard 5.2.2 enabled.
    2011-08-17 19:45:55 [INFO] CommandBook 1.5.2-customized enabled.
    2011-08-17 19:45:55 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-08-17 19:45:55 [INFO] CommandBook: 2 kit(s) loaded.
    2011-08-17 19:45:55 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-17 19:45:55 [INFO] CommandHelper 3.1.2 enabled
    2011-08-17 19:45:55 [INFO] CommandHelper: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-08-17 19:45:55 [INFO] [CommandHelper]: 7 alias(es) defined.
    2011-08-17 19:45:55 [INFO] [Runecraft] Rune blacklist with 0 runes loaded.
    2011-08-17 19:45:55 [INFO] [Runecraft] Loaded:
    2011-08-17 19:45:55 [INFO] [Runecraft]  - 0 waypoints, 0 teleporters
    2011-08-17 19:45:55 [INFO] [Runecraft]  - 0 position runes
    2011-08-17 19:45:55 [INFO] [Runecraft]  - 0 rune pads
    2011-08-17 19:45:55 [INFO] [Runecraft] World 'world_nether': id 1.
    2011-08-17 19:45:55 [INFO] [Runecraft] World 'world': id 0.
    2011-08-17 19:45:55 [INFO] [Runecraft] Runecraft 2.8 initialized.
    2011-08-17 19:45:55 [INFO] Runecraft plugin version 0.4 is enabled!
    2011-08-17 19:45:55 [INFO] [MagicCarpet] MagicCarpet version 1.5.6 is enabled!
    2011-08-17 19:45:55 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    2011-08-17 19:45:55 [INFO] [MagicCarpet] Using Permissions.
    2011-08-17 19:45:55 [INFO] [HeroicDeath] 1.8.4.160 enabled.
    2011-08-17 19:45:55 [INFO] [BananaChunk] version 4.6 is enabled!
    2011-08-17 19:45:55 [INFO] [OKReload] Attempting to enable OKReload v1.0.2 by Kalman Olah...
    2011-08-17 19:45:55 [INFO] [OKReload] Initiating auto-update...
    2011-08-17 19:45:55 [INFO] [OKReload] You already have the latest version of OKReload.
    2011-08-17 19:45:55 [INFO] [OKReload] Successfully hooked into Permissions plugin.
    2011-08-17 19:45:55 [INFO] [OKReload] OKReload v1.0.2 enabled successfully.
    2011-08-17 19:45:55 [INFO] [mChat] Permissions not found, Checking for GroupManager.
    2011-08-17 19:45:55 [INFO] [mChat] mChat version 1.7.10_5 is enabled!
    2011-08-17 19:45:55 [INFO] [mChatEssentials] Spout not found not using.
    2011-08-17 19:45:55 [INFO] [mChatEssentials] mChat 1.7.10_5 found now using.
    2011-08-17 19:45:55 [INFO] [mChatEssentials] version 1.7.2_3 is enabled!
    2011-08-17 19:45:55 [INFO] [pmChat] Spout not found not using.
    2011-08-17 19:45:55 [INFO] [pmChat] mChat 1.7.10_5 found now using.
    2011-08-17 19:45:55 [INFO] [pmChat] version 1.7.3_5 is enabled!
    2011-08-17 19:45:55 [INFO] [mcMMO] Permissions version 2.7.7 found, using Permissions.
    2011-08-17 19:45:55 [INFO] Loading Config File...
    2011-08-17 19:45:57 [INFO] [mcMMO] Permissions version 2.7.7 found, using Permissions.
    2011-08-17 19:45:57 [INFO] mcMMO version 1.1.03 is enabled!
    2011-08-17 19:45:57 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-08-17 19:45:57 [INFO] Done (0.343s)! For help, type "help" or "?"
    2011-08-17 19:45:57 [INFO] [PermissionsAttributeProvider] Bridged: Runecraft
    2011-08-17 19:46:15 [INFO] [AutoHelp] Searching active plugins' plugin.yml files for command help
    2011-08-17 19:46:15 [INFO] [AutoHelp] Skipping command 'help', already has a help entry
    2011-08-17 19:46:15 [INFO] [AutoHelp] 'Help' support enabled.
    2011-08-17 19:46:19 [INFO] derpface_the_bmf [/127.0.0.1:19182] logged in with entity id 126 at ([world] -40.1875, 68.0, 184.34375)
    2011-08-17 19:46:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'listplugins' in plugin OKReload v1.0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
        at me.kalmanolah.or.OKmain.CheckPermission(OKmain.java:155)
        at me.kalmanolah.or.OKCmd.onCommand(OKCmd.java:312)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-08-17 19:47:09 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'toggle' in plugin OKReload v1.0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
        at me.kalmanolah.or.OKmain.CheckPermission(OKmain.java:155)
        at me.kalmanolah.or.OKCmd.onCommand(OKCmd.java:67)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-08-17 19:47:21 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'refresh' in plugin OKReload v1.0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
        at me.kalmanolah.or.OKmain.CheckPermission(OKmain.java:155)
        at me.kalmanolah.or.OKCmd.onCommand(OKCmd.java:256)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
     
  25. Offline

    mefisto1542

    the /toggle command overrides the one in citizens to change the NPC types, just saying.
     
  26. Offline

    Kalman Olah

    I should've been more clear. OKReload supports Permissions 3.x.x, PermissionsEx, GroupManager and Bukkit's permissions without additional bridge plugins.

    :)

    Version 1.1.0​
    • Renamed commands to avoid conflicts.

    /plugin toggle <name> -- Enables/disables a plugin.
    Permissions node: okreload.toggleall or okreload.toggle.<name>

    Note: Can be used from the console.​
    /plugin reload -- Reloads all plugins except for OKReload.​
    Permissions node: okreload.reloadall or okreload.reload.<name>
    Note: Can be used from the console.​
    /plugin reload <name> -- Reloads a plugin.​
    Permissions node: okreload.reloadall or okreload.reload.<name>
    Note: Can be used from the console.​
    /plugin list -- Lists all plugins.​
    Permissions node: okreload.listplugins
    Note: Can be used from the console.​

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  27. Okay. But I'm willing to bet most people with PermissionsBukkit also have SuperpermsBridge, and I suspect that you could easily support them by having your permissions plugin detection code use bukkit permissions if both "PermissionsBukkit" and "Permissions" are loaded. Unless there are people that actually run PermissionsBukkit and Permissions at the same time. I dunno if that is a thing people do.

    Also, it turns out that SuperpermsBridge is supposed to be compatible with plugins made for Permissions 3.1, so maybe I should go bother them too.
     
  28. Offline

    Kalman Olah

    OKReload will only default to Bukkit's permissions when GroupManager, PEX or Permissions are absent. The code that checks the Permissions 3.1.x nodes is the snippet taken from the official wiki, so it should work as long as the bridge itself supports 3.1.x...
     
  29. Offline

    Tex©

    so far i like only one segestion is that when i hit /plugins list is that it shows pages rather then a spam of all of it like

    "/plugins list 1" page 1 out of somenumber here

    if ye can :p

    keep up the great work
     
  30. Offline

    Drat333

    Tried to toggle a plugin, and it stopped my server....?
     

Share This Page