Restoring canUseCommand Functionality

Discussion in 'Plugin Development' started by Kr1sc, Jan 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Kr1sc

    I posted a feature request: http://bugs.bukkit.org/issues/169

    For now, it looks like we will have to implement our own systems.

    Here is my take:
    https://github.com/jsedlak/Kikkit/blob/bukkit-conversion/src/SecurityManager.java

    Requires groups.txt
    Code:
    # groupName:/commands,/separated,/bycomma
    # * denotes all commands
    admins:*
    mods:/kick,/ban
    vips:/home,/sethome
    And players.txt
    Code:
    # playerName:groupName
    Kr1sc:admins
    lordenix:admins
    someUser:mods
    The functionality is that groups have access to commands, and players are in groups.
    My code doesn't feature group inheritance, and doesn't support chat coloring. Nor does it support adding players at runtime. And it hasn't been tested (I just finished the conversion to Bukkit).

    Feel free to use, improve, et cetera. Hope this helps!

    Edit: Fixed some bugs.
     
Thread Status:
Not open for further replies.

Share This Page