[ADMN] SetRankPEX v1.7 - Change ranks (groups) easier [PermissionsEx] [1.5.2-R0.1]

Discussion in 'Plugin Releases' started by Irock23, Sep 29, 2011.

     
  1. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    SetRankPEX - Change a user's group in PermissionsEx easier
    Version: 1.7
    CB: 1.5.2-R0.1


    Description:

    Tired of having to type /pex user <User> group set <Group>? With this plugin you can simply type /setrank <User> <Group>.

    Features:
    • Makes a shorter command to change a user's group (a.k.a. rank)
    • Can be configured to broadcast when a user's rank is changed
    • Message is configurable with color support (see here for color codes)
    • Separate join message for admins and owners that is configurable and optional
    Permissions:
    ~Go here if you have problems with permissions~
    • srpex.setrank.(group in lower case) - /setrank <User> <Group> (aliases: /rank, /setgroup, /group) - Allows you to set a user's group, but only to a specific one. If the group contains a space, use an underscore (_), same with the command. To set to all, use srpex.setrank.*.
    • srpex.from.(group in lower case) - Allows you to change a user's group from the specified one. If the group contains a space, use an underscore (_).
    • srpex.version - Allows you to check for a new version. Notifies users of a new version when they join.
    • srpex.reload - /srpexreload (aliases: /reloadsrpex, /srpexr) - Allows you to reload the configuration of SetRankPEX.
    Configuration:
    • allow-ops-changes - Boolean - If set to true, Ops do not need to have permissions to do the commands.
    • broadcast-rank-change - Boolean - If set to true, will broadcast a message when a user's group is changed.
    • broadcast-message - String - The message used when a user's rank is changed. Use +player and +group to insert the player name and group they are getting set to. If you are going to use colors, make sure to put it in apostrophes (single quotes). If you don't specify a color, it will default to being blue. Ex: broadcast-message: '&3+player is now a(n) +group'.
    • announce-ranks - String List - The ranks to be checked for when a player joins the game. If the player is one of the specified ranks, a special join message will be set. Ex: announce-ranks: [Admin, Owner].
    • ranks-message - String - The message to used for when a player joins the game and has in one of the announce-ranks ranks. Use +rank and +player to insert the player's rank and name. If you are going to use colors, make sure to put it in apostrophes (single quotes). If you don't specify a color, it will default to being yellow. Ex: ranks-message: '&f+rank +player has joined the game.'.
    • version-check - Boolean - If set to true, will check every hour for a new version of SetRankPEX.
    • check-interval - Long - The amount of seconds to wait between each check for a new version of SetRankPEX
    Dependencies/Conflicts:
    • PermissionsEx - Required for SetRankPEX
    • PEXRank - Conflicts with /setrank command
    If there are any features you would like me to add or any suggestions, please tell me.

    Source code included in JAR file

    Recent Change Log:

    Version 1.7 (05/20/2013) [Download ZIP | Download JAR]
    • Updated to 1.5.2-R0.1
    • Changed the permissions slightly
    Version 1.6.3 (03/07/2013)
    • Fixed problem with getServer()

    Version 1.7 (05/20/2013)
    • Updated to 1.5.2-R0.1
    • Changed the permissions slightly
    Version 1.6.3 (03/07/2013)
    • Fixed problem with getServer()
    Version 1.6.2 (02/26/2013)
    • Updated to CB 1.4.7-R1.0
    Version 1.6.1 (11/17/2012)
    • Made version check interval configurable
    • Cleaned up code
    Version 1.6 (08/02/2012)
    • Made hourly version check optional
    • Changed admin/owner option for join messages to a list of ranks
    • Now uses Java 7
    Version 1.5.2 (05/05/2012)
    • Removed "[SRPEX]" from most messages
    • Fixed default config file creation
    Version 1.5.1 (04/10/2012)
    • Version check implemented
    Version 1.5 (04/03/2012)
    • Admin and owner messages now configurable
    • New permission for not allowing to change a user's group if they are in a certain group
    Version 1.4.1 (03/21/2012)
    • Admin/owner message now optional
    • Code cleaned up a bit
    Version 1.4 (03/21/2012)
    • Updated for new event listeners
    • Now says when an admin or owner joins the game
    Version 1.3.4 (10/22/2011)
    • Fixed a problem that made it so you could not change a user's group to a group they were inheriting from
    Version 1.3.3 (10/21/2011)
    • Updated for YamlConfiguration
    • A player no longer has to be online for you to change their rank
    Version 1.3.2 (10/07/2011)
    • Changed command to use underscores in the place of spaces when doing /setrank
    • Source code is now included in the .jar file
    Version 1.3.1 (10/04/2011)
    • Allowed the use of spaces in a group when doing /setrank
    • Changed permissions so you use underscores for spaces in a group's name
    Version 1.3 (10/02/2011)
    • Fixed a few minor errors
    Version 1.2.2 (10/01/2011)
    • Added color support for the broadcasted message
    Version 1.2.1 (10/01/2011)
    • Changed the permissions to make more sense
    Version 1.2 (09/30/2011)
    • Made the broadcasted message configurable
    • Specific permissions for each group
    Version 1.1 (09/29/2011)
    • Fixed a problem causing the plugin not to enable
    Version 1.0 (09/29/2011)
    • First Public Release

    This post has been edited 45 times. It was last edited by Irock23 May 21, 2013.
    Miki4000, DoomLord and jenks1999 like this.
  2.  
  3. Offline

    TehRandomGuy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Please remove the Full Changelog spoilers are they are not nessecary.
    JOPHESTUS likes this.
  4. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sir, I think I love you. I think PEX is an awesome plugin but I never used it becuase of the long process of setting ranks.

    Thanks,
    -JOPH
  5. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I tried it out but...
    Code:
    08:40:40 [SEVERE] Could not load 'plugins\SetRankPEX.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: me/Irock23/SRPEX/SetRankPEX : Unsupported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            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$000(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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:168)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    This is on CB latest RB

    This post has been edited 1 time. It was last edited by JOPHESTUS Sep 30, 2011.
  6. Offline

    bobeeb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    same here, plugin did not start @ 1185

    Code:
    2011-09-30 00:09:34 [INFO] Starting Minecraft server on *:25565
    2011-09-30 00:09:34 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)
    2011-09-30 00:09:35 [INFO] [PermissionsEx] sql backend registered!
    2011-09-30 00:09:35 [INFO] [PermissionsEx] file backend registered!
    2011-09-30 00:09:35 [INFO] [PermissionsEx] PermissionEx plugin initialized.
    2011-09-30 00:09:35 [SEVERE] Could not load 'plugins\SetRankPEX.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: me/Irock23/SRPEX/SetRankPEX : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        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$000(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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:168)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-30 00:09:36 [INFO] [PermissionsEx] p2compat backend registered!
    2011-09-30 00:09:36 [INFO] [PermissionsCompat] Compatibility Layer Initalized!
  7. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Also does the confiurible rank message support colours?
  8. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't know what was up with the like 5 spoilers, I only told it to add one. To the people getting errors, looking into it now. @JOPHESTUS The message isn't configurable, yet, but you can turn it on or off.

    Edit:
    Let me know if this works, it works for me. I just overlooked something when I put it up, sorry about that.

    This post has been edited 1 time. It was last edited by Irock23 Sep 30, 2011.
  9. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm sorry to say it doesn't work
  10. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I figured out the problem, I think, if you are using Java 6, it will not work as I have it using Java 7. Since I'm guessing more people will be using Java 6, I will change it.

    It should now work if you use the latest version (1.1).

    This post has been edited 1 time. It was last edited by Irock23 Sep 30, 2011.
  11. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I keep getting the same error, could there be another plugin(s) conflicting with it?

    -JOPH
  12. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't think so, try downloading it and trying it again, I think I finally fixed the problem.
  13. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I've downloaded it 3 times, unfortunately still errors :'(.
    Does it work for you?
  14. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It works perfectly fine for me, no errors at all, I'm not sure what is wrong.
  15. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That sucks, I'd really love to be able to use this plugin
  16. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I tried something different, if it doesn't work now, I have no clue what is wrong or how to fix it.
  17. Offline

    JOPHESTUS

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Whatever you did works, thank you so very much [diamond][diamond]:):D[gold][cake]

    -JOPH
  18. Offline

    darth2499

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    this works amazing! please add an option to change the global message, please!!!
  19. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Okay, I will add this feature later, just look out for a 1.2! :D
  20. Offline

    bobeeb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yeah, now it is working.
    thnx
    is there a permission for moderators i can give like srpex.setrank.group1
    so that they can only rank for some ranks and not up to admin?
  21. Offline

    darth2499

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thx so much, very excited!
  22. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I will try to add this in 1.2 as well, so when 1.2 comes out just check for it in the changelog to see if I did.
  23. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well for those of you who were asking for some new features, I've added them :D. Make sure to download the latest version
  24. Offline

    gameswereus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks a ton for this great plugin!
  25. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No problem, just remember, if there is any feature you would like that is not already there, don't forget to ask for it.
  26. Offline

    TehRandomGuy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How about a ladder like /rank [Player] will rank them up to the next rank on the ladder.
  27. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I might do this if a lot of people really want it, but since the command to promote is already pretty short, I don't think it is really necessary.
  28. Offline

    Daniel Heppner

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You understand that if you set it up correctly, you can just do /pex promote. Then just nake an alias for it.
  29. Offline

    Irock23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Not completely sure what you mean

    Anyway, I have confirmed this works with RB 1240 without the need to update.
  30. Offline

    Daniel Heppner

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    On my server, when I want to promote someone to builder, pex lets me do /pex promote. Not science.
  31. Offline

    Jhonz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    First of all, great plugin! :)

    Been using it for my main server for a while now, works almost flawlessly.

    There's one little nag that is bugging me though.
    I have a few ranks that have multiple words e.g. Super Moderator.

    When using the /rank or /setrank command, I am unable to promote the user to any rank with multiple words.
    Before you ask, yes I have tried adding it using quotation marks.

    I have to resort to using the pex long-winded command to promote that person.

    It's nothing major, but still It's something you might want to look at!

    Thanks for the nice plugin!
    -Jhon

    This post has been edited 1 time. It was last edited by Jhonz Oct 4, 2011.

Share This Page