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

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

  1. Offline


    SetRankPEX - Change a user's group in PermissionsEx easier
    Version: 1.7
    CB: 1.5.2-R0.1


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

    • 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
    ~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.
    • 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
    • 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()
    Full Change Log (open)

    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
    Miki4000, DoomLord and jenks1999 like this.
  2. Offline


    I rarely give good advice to plugin developers, not because I don't like their plugins, but really because I like improving plugins for the better, to have more people download their plugin higher reputation.
    I have to admit though, not much I can improve on this one. I am sure this will be a popular one. You have my "Like."
    This will be some good competition for PermissionsPlus. Finally.
    Great Plugin!
  3. Offline


    This should now work with group names that use spaces, for permissions use an underscore in the place of a space.

    edit: I know this has some problems, but it was a quick fix for the time being and should be working fine in a later version.

    Thanks :D
  4. Offline


    No problem! :)

    Glad I could help somewhat! ^^

  5. Offline


    /pex promote "user"
    /pex demote "user"
    I stick with that, thanks.
    Daniel Heppner likes this.
  6. Offline


    rg.bukkit.command.CommandException: Unhandled exception executing command 'setrank' in plugin SetRankPEX v1.3.1
    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:358)
    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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    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.ArrayIndexOutOfBoundsException: 1
    at me.Irock23.SRPEX.SetRankPEX.onCommand(SetRankPEX.java:80)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 13 more
  7. Offline


    This was probably because you weren't using all the arguments. Anyway, in the new version, 1.3.2, There shouldn't be any problems.
  8. Offline


    i can abreviate peoples name :(. plz make this feature

    my groups in order friom least perms to most is guest citizen architect developer moderator admin owner. i am owner and if i try to change to any other rank it says ur already in that group. and it is the same for all others that i try to change to below there currrent rank. im guessing there is a problem here with inheritance. im using build 1240 and newest not dev build of this plugin

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 20, 2016
  9. newests version fails to detect newest PEX and disabled it self
  10. Offline


    I'm not sure what is wrong here as I do not seem to have this problem, but if I can figure out what is wrong I'll try to fix it.
    Strange, I have the newest version of PEX and it detects it fine, may I see your log to see what the problem might be?
  11. Offline


    hey I would like to have the command /rank (player) alot easier or /promote (player) also alot of people make an app before they get online...thing is if that person isnt online I cant promote them until they are online?

    Be awesome if you can get this to work without that player online :)

    btw you fixed my 2 day problem with this
  12. Offline


    You can do /rank <Player>, if you look /rank is an alias of /setrank. The reason it checks if they are online is to make sure that that player actually exists first. I suppose I could take the check out.
  13. Offline


    Could you add a rank ladder so we could do /promote <player> and /demote <player>?
  14. Offline


    Cb 1318 latest pex latest pexsetrank and this plugin is not seeing that PEX is enabled and thus disabling its self rather annoying indeed.
  15. Offline


    I have latest of all of them and it is working fine for me, any more information you can give me?
  16. Offline


    Please make it so you can rank ppl when their not online.
  17. Offline


    Ok a few problems i have.

    1: If i try to abreviate a name(for example player1 i put as pla) it wll create that user instead and say "pla is now a whatever"

    2. i cant demote people back down do a group they inherat from. for example i have in order of inheritance. guest,citizen,moderator,admin. i can make a guest to a citizen and then to a moderator. but if i try to put someone like a moderator down to like a citizen it say "Player already in that group"

    its actually more like 5 problems sumed int 2

    oh ur not supposed to be able to do that. well i guess thats another messed up thing i have

    upgrade to newest java

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


    user not promotable please make sure the user is online.
    something like that ^
  19. Offline


    Awesome alot better I didnt know if /rank would work :p and the online thing is annoying cause my mods and promoters cant promote if they are not online when they check apps...

    thanks a bunch I support this plugin 100%
  20. Offline


    i still have this problem PLZ HELP!
  21. Offline


    This should be fixed in the latest version, just download it on BukkitDEV, I'm not updating this page anymore.
  22. Offline


    update it to 1337 please.
    EDIT: nvm, its on bukkitDEV :D
    remember to always leep this awesome plugin up to date! xD
  23. Offline


  24. Offline


    2011-10-30 16:05:21 [SEVERE] [SRPEX] PermissionsEx not detected, disabling SetRankPEX
    2011-10-30 16:05:21 [INFO] [SRPEX] SetRankPEX is now disabled.
    2011-10-30 16:05:21 [WARNING] PermissionsEx plugin are not found.
    2011-10-30 16:05:21 [INFO] [PermissionsEx] Superperms support enabled.
    2011-10-30 16:05:21 [INFO] [PermissionsEx] v1.15 enabled
  25. Offline


    This is directed toward anyone about to say /pex promote works.
    This is for MULTIPLE GROUP USE
    Ex. Flraglenomber is a Guest. He is supposed to be Admin. The ranks are.
    Guest. Member. Builder. Moderator. Admin.
    Instead of doing /pex promote [name] 5 times. Or doing /pex user [name] group set admin
    You can just use this plugin.
    This is for large servers with multiple ranks it seems, not for servers with two or three.
    Otherwise, amazing plugin. I'll probably give it a go.
  26. Offline


    PLZ! still need help this thing only works in my perms if its the .* permission. individual groups are not working

            default: true
            - essentials.rules
            - essentials.help
            - essentials.helpop
            - essentials.spawn
            - essentials.list
            - essentials.mail
            - essentials.mail.send
            - essentials.mail.clear
            - heroicrebuke.list
            - essentials.helpop.recieve
            - essentials.ban.notify
            - essentials.kick.notify
            - lytreehelper.db.blockaccess
            - IPGet.self
            - modifyworld.chat
            - modifyworld.sneak
            - modifyworld.sprint
            - chaircraft.sit
            options: null
            prefix: Guest&f>
            default: false
            - Guest
            - nocheat.admin.chatlog
            - deadbolt.broadcast.*
            - deadbolt.command.*
            - essentials.portal
            - essentials.tell
            - essentials.help
            - essentials.helpop
            - essentials.spawn
            - essentials.afk
            - essentials.back
            - essentials.back.ondeath
            - essentials.clearinventory
            - essentials.compass
            - essentials.depth
            - essentials.getpos
            - essentials.geoip.show
            - essentials.sethome
            - essentials.home
            - essentials.info
            - essentials.kit
            - essentials.kit.list
            - essentials.kit.Building_starter
            - essentials.kit.Armor_starter
            - essentials.list
            - essentials.mail
            - essentials.mail.send
            - essentials.mail.clear
            - essentials.me
            - essentials.motd
            - essentials.msg
            - essentials.protect
            - essentials.protect.alerts
            - essentials.protect.damage.drowning
            - essentials.protect.damage.creeper
            - essentials.protect.damage.fall
            - essentials.protect.damage.lightning
            - essentials.protect.damage.projectiles
            - essentials.protect.damage.suffocation
            - essentials.protect.damage.fire
            - essentials.protect.damage.fireball
            - essentials.protect.entitytarget.bypass
            - essentials.protect.ownerinfo
            - essentials.r
            - essentials.setxmpp
            - essentials.signs.create.protection
            - essentials.signs.create.trade
            - essentials.signs.break.protection
            - essentials.signs.break.trade
            - essentials.signs.use.balance
            - essentials.signs.use.buy
            - essentials.signs.use.disposal
            - essentials.signs.use.free
            - essentials.signs.use.heal
            - essentials.signs.use.mail
            - essentials.signs.use.protection
            - essentials.signs.use.time
            - essentials.signs.use.trade
            - essentials.signs.use.weather
            - essentials.signs.use.warp
            - essentials.suicide
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpahere
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.warp.*
            - essentials.xmpp
            - essentials.helpop.recieve
            - essentials.ban.notify
            - essentials.kick.notify
            - essentials.portal
            - essentials.time
            - BedHeal.Advanced.Use
            - mobarena.use.spectate
            - mobarena.use.*
            - mobarena.classes.*
            - mobarena.arenas.*
            - heroicrebuke.list
            - lytreehelper.destroyall
            - lytreehelper.db.forestlist
            - signlift.use.normal
            - signlift.use.private.own
            - signlift.create.private.own
            - dreamland.goto
            - dreamland.fly
            - NightClub.go
            - nomovedtooquicklykick.exempt
            - nSpleef.member.creategame
            - nSpleef.member.deletegame
            - nSpleef.member.join
            - nSpleef.member.leave
            - nSpleef.member.list
            - deadbolt.user.*
            - deadbolt.user.create.*
            - modifyworld.usebeds
            - modifyworld.chat.private
            - modifyworld.bucket.empty.*
            - modifyworld.bucket.fill.*
            - modifyworld.blocks.destroy.*
            - modifyworld.blocks.place.*
            - modifyworld.blocks.interact.*
            - modifyworld.items.pickup.*
            - modifyworld.items.drop.*
            - modifyworld.items.have.*
            - modifyworld.damage.deal.*
            - modifyworld.damage.take.*
            - modifyworld.mobtarget.*
            - modifyworld.interact.*
            - modifyworld.tame.animal.wolf
            - modifyworld.tame.wolf
            - modifyworld.vehicle.destroy
            - modifyworld.vehicle.enter
            - modifyworld.vehicle.collide
            - spouttrade.trade
            - ashtheking.tent.create
            - cm.init
            - cm.upload.mp3
            - cm.upload.midi
            - cm.radio.list.player
            - cm.song.list.player
            - cm.box.list.player
            - cm.song.play.global
            - cm.song.stop.global
            - bog.*
            - boi.*
            - bof.*
            - bol.*
            - arg.user
            - arg.claim
            options: null
            prefix: '&cCitizen&f>'
            default: false
            - Citizen
            - essentials.gc
            options: null
            prefix: '&cDeveloper&f>'
            default: false
            - Citizen
            - essentials.heal
            - essentials.item
            - essentials.itemspawn.item-all
            - superpickaxe.use
            - essentials.repair
            options: null
            prefix: '&cArchitect&f>'
            default: false
            - Architect
            - worldedit.*
            - essentials.god
            - essentials.tp
            - essentials.tphere
            - lazyroad.build
            - arg.saveload
            - essentials.warp.otherplayers
            options: null
            prefix: '&cEngineer&f>'
            default: false
            - Engineer
            - srpex.*
            - essentials.tp
            - essentials.god.others
            - heroicrebuke.add
            - heroicrebuke.clear
            - heroicrebuke.active
            - heroicrebuke.info
            - heroicrebuke.list
            - heroicrebuke.list.others
            - SimpleJail.jail
            - SimpleJail.unjail
            - essentials.home.other
            - essentials.kick
            - essentials.ban
            - essentials.banip
            - essentials.broadcast
            - essentials.burn
            - essentials.ext
            - essentials.ext.others
            - essentials.invsee
            - essentials.heal.others
            - essentials.clearinventory.others
            - essentials.socialspy
            - essentials.unban
            - essentials.unbanip
            - essentials.weather
            - essentials.time.set
            - srpex.rank.citizen
            - signlift.use.private.others
            - signlift.create.private.others
            - signlift.create.normal
            - superpickaxe.breakBedrock
            - IPGet.other
            - icegeoip.geoip
            - deadbolt.admin.snoop
            - deadbolt.admin.signs
            - deadbolt.admin.bypass
            - deadbolt.admin.break
            - deadbolt.admin.create
            - adminscanfly.allow
            - spoutninja.use
            - spoutninja.use
            - nocheat.checks.moving.flying
            - nocheat.checks.moving.runfly
            - nocheat.checks.moving.swimming
            - nocheat.checks.moving.sneaking
            - nocheat.checks.moving.nofall
            - ashtheking.tent.size
            - cm.area.delete.player
            - cm.box.delete.player
            - cm.radio.delete.player
            - cm.upload.webradio
            - cm.area.define
            - cm.area.set
            - cm.area.set.overlap
            - cm.area.list.player
            - cm.box.set
            - cm.box.set.overlap
            - cm.box.list.player
            - arg.bypass
            - arg.player
            options: null
            prefix: '&cModerator&f>'
            default: false
            - Moderator
            - SimpleJail.setjail
            - heroicrebuke.*
            - essentials.*
            - backup.canbackup
            - mobarena.admin.*
            - mobarena.setup.*
            - LockIP.admin
            - srpex.rank.Devloper
            - srpex.rank.Architect
            - srpex.rank.Moderator
            - srpex.rank.Citizen
            - lytreehelper.generate.trees
            - lytreehelper.generate.forests
            - lytreehelper.generate.nursery
            - lytreehelper.db.registerforest
            - lytreehelper.db.deleteforest
            - lytreehelper.db.regenerateforest
            - signlift.*
            - craftbukkituptodate.broadcast
            - craftbukkituptodate.changelog
            - NightClub.build
            - superpickaxe.*
            - nSpleef.admin.define
            - nSpleef.admin.deleteanygame
            - nSpleef.admin.deletearena
            - nSpleef.admin.forceready
            - nSpleef.admin.forcejoin
            - nSpleef.admin.forceleave
            - geoiptools.geoupdate
            - deadbolt.command.reload
            - nocheat.admin.*
            - lazyroad.build
            options: null
            prefix: '&cAdmin&f>'
            default: false
            - Admin
            - srpex.*
            - craftbukkituptodate.download
            - craftbukkituptodate.plugin
            - craftbukkituptodate.update
            - citizens.*
            options: null
            prefix: '&cOwner&f>'
  27. Offline


    come on plzzzzzz
  28. Offline


    I think I have it so that you have to use all lower case in it, see if that helps.
  29. Offline


    u mean for nodes like .srpex.group.citizen
  30. Offline


    Well srpex.rank.citizen, but yes.
  31. Offline


    yeah sorry meant rank not group is what i have still broken though

Share This Page