[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

    Irock23

    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()
    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

    iJumbo

    Awesome plugin, I use it on my server.
     
  3. Offline

    blasterweb

    It doesn't even start up.
    No errors, this is what it shows on the console:
    SRPEX: SetRankPEX is now disabled.

    Here is my SetRankPEX config file:
    Code:
    broadcast-rank-change: true
    allow-ops-changes: true
    broadcast-message: '+player is now a(n) +group'
    
    And here is my permissions.yml:
    Code:
    groups:
        Rulebreaker:
            default: false
            permissions:
            - multiverse.help
            - -modifyworld.items.have.flintandsteel
            - -modifyworld.items.pickup.flintandsteel
            - -modifyworld.items.drop.flintandsteel
            - -modifyworld.items.have.259
            - -modifyworld.items.pickup.259
            - -modifyworld.items.drop.259
            - essentials.list
            - essentials.info
            - nocheat.checks.chat.spam
            - essentials.helpop
            - -modifyworld.blocks.place.tnt
            - modifyworld.chat
            - modifyworld.chat.private
            - modifyworld.usebeds
            - modifyworld.sprint
            - modifyworld.sneak
            - modifyworld.items.pickup.*
            - modifyworld.items.have.*
            - modifyworld.items.drop.*
            - modifyworld.damage.deal.*
            - modifyworld.damage.take.*
            - modifyworld.mobtarget.*
            - modifyworld.interact.*
            - modifyworld.tame.*
            - modifyworld.vehicle.*
            - essentials.rules
            - essentials.info
            - essentials.help
            - essentials.motd
            - essentials.ban.notify
            - essentials.time
            - iConomy.help
            prefix: '&7[Rulebreaker]&f'
            options:
                rank: '5'
        Guest:
            default: true
            permissions:
            - waypoint.warp
            - waypoint.warp.list
            - waypoint.world
            - waypoint.world.teleport
            - waypoint.warp.access.*
            - waypoint.sign.link.use
            - waypoint.sign.warp
            - waypoint.sign.world
            - waypoint.spawn
            - essentials.kick.notify
            - -modifyworld.items.have.flintandsteel
            - -modifyworld.items.pickup.flintandsteel
            - -modifyworld.items.drop.flintandsteel
            - -modifyworld.items.have.259
            - -modifyworld.items.pickup.259
            - -modifyworld.items.drop.259
            - essentials.info
            - multiverse.teleport.self.*
            - multiverse.access.*
            - multiverse.help
            - essentials.list
            - essentials.info
            - nocheat.checks.chat.spam
            - essentials.helpop
            - -modifyworld.blocks.place.tnt
            - modifyworld.chat
            - modifyworld.chat.private
            - modifyworld.usebeds
            - modifyworld.sprint
            - modifyworld.sneak
            - modifyworld.items.pickup.*
            - modifyworld.items.have.*
            - modifyworld.items.drop.*
            - modifyworld.damage.deal.*
            - modifyworld.damage.take.*
            - modifyworld.mobtarget.*
            - modifyworld.interact.*
            - modifyworld.tame.*
            - modifyworld.vehicle.*
            - essentials.rules
            - essentials.help
            - essentials.motd
            - essentials.ban.notify
            - essentials.time
            - -worldedit.*
            - -multiverse.*
            - essentials.pay
            - iConomy.holdings
            - iConomy.help
            - iConomy.payment
            - ChestShop.shop.buy
            - ChestShop.shop.sell
            prefix: '&e[Guest]&f'
            options:
                rank: '3'
        Member:
            default: false
            prefix: '&2[Member]&f'
            permissions:
            - logblock.tools.tool
            - logblock.tools.toolblock
            - hawkeye.tool
            - battlenight.user
            - worldedit.navigation.unstuck
            - waypoint.basic.*
            - waypoint.home
            - waypoint.home.set
            - waypoint.sign.link.create
            - waypoint.sign.link.delete
            - essentials.suicide
            - essentials.msg
            - essentials.afk
            - essentials.clearinventory
            - modifyworld.*
            - essentials.back.ondeath
            - essentials.back
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpdeny
            - essentials.tpahere
            - lwc.create
            - lwc.remove
            - lwc.modify
            - lwc.info
            - lwc.unlock
            - essentials.ignore
            - jobs.world.world
            - iConomy.holdings.others
            - ChestShop.shop.create
            - jobs.join.*
            inheritance:
            - Guest
            options:
                rank: '1'
        Advertiser:
            default: false
            permissions:
            - NoSpeedKick.preventkick
            - essentials.top
            - essentials.heal
            - nocheat.checks.moving.runfly
            - nocheat.checks.moving.flying
            - essentials.heal
            prefix: '&a[Advertiser]&f'
            inheritance:
            - Member
        VIP:
            default: false
            permissions:
            - worldedit.navigation.thru
            - essentials.item
            - essentials.tree
            prefix: '&5[VIP]&f'
            inheritance:
            - Advertiser
        Promoter:
            default: false
            permissions:
            - srpex.setrank.member
            - srpex.setrank.guest
            - srpex.setrank.rulebreaker
            - srpex.setrank.Member
            - srpex.setrank.Guest
            - srpex.setrank.Rulebreaker
            - permissions.user.promote.*
            - permissions.user.demote.*
            - hawkeye.search
            - hawkeye.search.*
            - hawkeye.tpto
            - essentials.whois
            - essentials.bigtree
            - essentials.mute
            - -permissions.*
            - dropclear.kill
            prefix: '&d[Promoter]&f'
            inheritance:
            - VIP
        Moderator:
            permissions:
            - essentials.jails
            - essentials.togglejail
            - essentials.togglejail.offline
            - waypoint.warp.create
            - waypoint.warp.delete
            - lwc.mod
            - worldguard.region.define
            - worldguard.region.redefine.*
            - worldguard.region.select.*
            - worldguard.region.info.*
            - worldguard.region.addowner.*
            - worldguard.region.removeowner.*
            - worldguard.region.addmember.*
            - worldguard.region.removemember
            - worldguard.region.list
            - worldedit.analysis.count
            - worldedit.selection.size
            - worldedit.selection.expand
            - worldedit.selection.contract
            - worldedit.selection.pos
            - worldedit.selection.hpos
            - worldedit.wand
            - waypoint.teleport.teleport
            - waypoint.teleport.here
            - essentials.kick
            - essentials.repair
            - essentials.spawnmob
            - essentials.helpop.receive
            - essentials.give
            - essentials.tp
            - essentials.tphere
            - essentials.weather
            - essentials.invsee
            - essentials.broadcast
            - worldedit.selection.*
            - worldedit.wand
            - worldedit.wand.toggle
            - essentials.geoip.show
            - worldguard.region.define
            - worldguard.region.redefine.*
            - worldguard.region.select.*
            - worldguard.region.flag.flags.*
            - worldguard.region.flag.regions.*
            - worldguard.region.addmember.*
            - worldguard.region.addowner.*
            - worldguard.region.removemember.*
            - worldguard.region.removeowner.*
            - worldguard.region.list
            - worldguard.region.remove.*
            - worldguard.region.info
            - essentials.ban
            - essentials.tempban
            - essentials.kick.exempt
            - essentials.ban.exempt
            - essentials.unban
            - essentials.banip
            - essentials.unbanip
            - jobs.admin.info
            - spamhammer.unban
            - spamhammer.unmute
            - ChestShop.mod
            - essentials.heal.bypass
            - -worldedit.*
            prefix: '&1[Moderator]&f'
            inheritance:
            - Promoter
        Admin:
            permissions:
            - essentials.tempban.exempt
            - essentials.tempban.offline
            - essentials.ban.offline
            - essentials.mute.exempt
            - lwc.admin
            - worldedit.clipboard.*
            - worldedit.fast
            - worldedit.generation.*
            - worldedit.history.*
            - worldedit.region.*
            - worldedit.selection.*
            - worldedit.analysis.*
            - worldedit.tool.*
            - worldedit.brush.*
            - worldedit.green
            - worldedit.butcher
            - worldedit.extinguish
            - worldedit.fixwater
            - worldedit.fixlava
            - worldedit.drain
            - worldedit.navigation.up
            - blockthatshit.disabled
            - worldguard.fire-toggle.*
            - essentials.tpaall
            - essentials.socialspy
            - essentials.lightning
            - essentials.kill
            - essentials.nick
            - essentials.god
            - dropclear.killadmin
            - worldedit.selection.*
            - worldedit.wand
            - logblock.rollback
            - logblock.tp
            prefix: '&b[Admin]&f'
            inheritance:
            - Moderator
        Co-owner:
            permissions:
            - essentials.deljail
            - essentials.setjail
            - srpex.setrank.advertiser
            - srpex.setrank.Advertiser
            - battlenight.admin
            - hawkeye.*
            - essentials.tpall
            - essentials.kickall
            - -jobs.world.Creative
            - jobs.*
            - worldguard.*
            - iConomy.*
            prefix: '&c[Co-Owner]&f'
            inheritance:
            - Admin
        Owner:
            permissions:
            - srpex.*
            - essentials.*
            - worldedit.*
            - hidden.*
            - noportals.*
            - waypoint.*
            - herospawn.*
            - multiverse.*
            - logblock.*
            - multiverse.*
            - spamhammer.*
            - permissions.*
            - nocheat.admin.*
            - ChestShop.*
            - '*'
            inheritance:
            - Co-owner
     
  4. Offline

    Deleted user

    Do you mind downgrading this plugin to R.B. 1185? I don't like R.B. 1337, because it doesn't work that well for me :3
     
  5. Offline

    iJumbo

    Make sure your running recommend craftbukkit 1337. Also use a YAML Parser, there may be something wrong with your nodes. I have allow-ops-changes to false and it works for me, try those tasks, it might work.
     
  6. Offline

    Irock23

    The only reason it should disable itself is if it can't find PermissionsEx, so try to make sure that it is loading correctly.
     
  7. Offline

    Buckethead

    many seem to star having this problem. another thing thogh. ur perms

    groups: Rulebreaker: default: false permissions: - multiverse.help - -modifyworld.items.have.flintandsteel - -modifyworld.items.pickup.flintandsteel - -modifyworld.items.drop.flintandsteel - -modifyworld.items.have.259 - -modifyworld.items.pickup.259 - -modifyworld.items.drop.259
    remove the extra - in front of modifyworld
     
  8. Offline

    Irock23

    That "-" means to remove that node, so say you have a node ending in ".*" and you don't want a group to have one of the nodes included in it, you just add "-" in front of that node.
     
  9. Offline

    blasterweb

    Suddenly, it started to work. Now there is only one issue though: People that are able to promote, can just make me (owner) to a member. That's annoying, but I know that they won't do it to me, but what about the other players?
     
  10. Offline

    Deleted user

    Thanks man >.> XD

    I'm going to say this again because you didn't reply:
    Can you downgrade this to RB 1185?

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

    Irock23

    I can, but I do not wish to since not many people will want it. I will try to always keep this up to date, but I will not add new features to for old builds.
     
  12. Offline

    Deleted user

    OK Thanks :D. When you're done downgrading, just make a reply like this please:
    @ShootToMaim done.
     
  13. Offline

    Buckethead

    OMG REALLY!!!! Learn something new everyday
     
  14. Offline

    ViperKnows

    This makes things much easier, thank you!
     
  15. Offline

    panborsuk

    Works good on my Bukkit #1510.

    How can I change color of a broadcast?
     
  16. Offline

    Shooty

    Ok i'v do nothing and BAMMMMMM

    2011-11-27 06:08:39 [SEVERE] [SRPEX] PermissionsEx not detected, disabling SetRankPEX
    2011-11-27 06:08:39 [INFO] [SRPEX] SetRankPEX is now disabled. :(
     
  17. Offline

    saul100

    Either you don't have PermissionsEX installed or it is not set up properly.
     
  18. Offline

    Shooty

    Lulz, it's totally works.
     
  19. Offline

    unusualbob

    I have this same issue, PEX is definitely installed and working properly. Here's a reload log.

    Code:
    21:52:55 [INFO] LWC: At version: 4.0.0-alpha7 (b488)
    21:52:55 [INFO] [PermissionsCompat] Compatibility layer enabled.
    21:52:55 [INFO] [Tele++] initializing version [1.3.4]
    21:52:55 [WARNING] 'Help' not detected. No Help support enabled! Using internal Help
    21:52:55 [INFO] [Tele++] version [1.3.4] loaded
    21:52:55 [SEVERE] [SRPEX] PermissionsEx not detected, disabling SetRankPEX
    21:52:55 [INFO] [SRPEX] SetRankPEX is now disabled.
    21:52:55 [INFO] PlgDisableCmd version 1.3 is enabled!
    21:52:55 [INFO] Disabled 2 commands
    21:52:55 [INFO] Vanilla version 0.1 is enabled!
    21:52:55 [INFO] [PermissionsEx] Superperms support enabled.
    21:52:55 [INFO] [PermissionsEx] v1.16 enabled
    21:52:55 [INFO] [ChatManager] ChatManager enabled!
    21:52:55 [INFO] [Modifyworld] Modifyworld disabled. Check config.yml!
    21:52:55 [INFO] [Modifyworld] Modifyworld disabled!
    21:52:55 [INFO] [LogBlock] Permissions plugin found.
    21:52:55 [INFO] [LogBlock] Using own chest access API
    21:52:55 [INFO] [LogBlock] Scheduled consumer with bukkit scheduler.
    21:52:55 [INFO] LogBlock v1.42 by DiddiZ enabled.
    21:52:55 [INFO] Server permissions file permissions.yml is empty, ignoring it
    21:52:55 [INFO] Reload complete.
    
    It looks like your plugin is loading before PEX so it doesn't detect it properly.
     
  20. Offline

    Shooty

    For me SRPEX IS LOADED after but same issues
    @Irock23

    please do an update :D
     
  21. Offline

    Buckethead

    i have the newest version of this and pex on my 1.8.1 server and it works fine
     
  22. Offline

    Shooty

    We talk about the 1.0 server ;)
     
  23. Offline

    Johnwg7

    this is odd it works for my server i run on my computer but not my host why is that?
     
    OmNommNomm likes this.
  24. Offline

    Buckethead

    well there is bo recomended build for 1.0 yet so its not his problem yet.
     
  25. Offline

    Shooty

    lol.
     
  26. Offline

    Ammar18

    1.0.0 coming anytime soon?
    I don't know how to rank with permissionsEX or command bin.
    Please notify me anytime soon when the new version is coming, thanks
     
  27. Offline

    Deleted user

    If anyone has problems starting up PermissionsEx + SetRankPEX, there is a super simple fix for that.
    WHAT YOU'LL NEED:
    - Winrar/7zip
    - Notepad++

    STEPS:
    1. Open up SetRankPEX.jar with Winrar/7zip.
    2. Double click on the plugin.yml to edit it.
    3. Once it's opened, look for a line that says:
    Code:
    name: SetRankPEX
    
    4. Add in this line underneath the name line:
    Code:
    depend: [PermissionsEx]
    
    Now it should look like:
    Code:
    BLAH BLAH BLAH
    
    main: me.Irock23.SRPEX.SetRankPEX
    name: SetRankPEX
    depend: [PermissionsEx]
    version: 1.3.4
    
    BLAH BLAH BLAH
    
    Like this post if it helped you ;P.
     
    devoid v3 likes this.
  28. Offline

    teriblebun

    what is group
     
  29. Offline

    higuy247

    same problem
     
  30. Offline

    OmNommNomm

    SetrankPEX is not detecting PermissionsEX for some reason, this is only on my host, but it works on my computer if I run a server, can someone help me?
     
  31. Offline

    iWhiteFeather

    I am new at plugins, and I want to know how to install them. I have made a folder and such, and have followed tutorials. I have essentials, and permissionsEX. Neither of them I have used yet, they are just in my plugins folder. Please direct me in how to install plugins, it would mean a lot.

    I think I have essentials because I have things such as /setspawn and what-not. I do not think I have downloaded /setrank yet, I try /setrank_x609xzrushx_owner, but it says unknown command. If I try /setrank x609xzrushx owner, it says an internal error has occured. Please help!

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

Share This Page