[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

    Deleted user

    Do you have a R.B. 1185 version of this?
     
  3. Offline

    Buckethead

    this plugin or bukkit 1185. cuz i have 1337 build and newest version of whatever this plugin is that isnt dev

    ok this is getting ridiculous. pex 1.16 bukkit 1337 and whatever ur newest version is. heses are my perms. i am in owner group. all my other perms work fine. no one on my server can rank anyone to anything except console :<

    Code:
    groups:
        Guest:
            default: true
            permissions:
            - 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: '&5Guest&f>'
        Citizen:
            default: false
            inheritance:
            - Guest
            permissions:
            - 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
            - mcvote.vote
            options: null
            prefix: '&cCitizen&f>'
        Developer:
            default: false
            inheritance:
            - Citizen
            permissions:
            - essentials.gc
            options: null
            prefix: '&cDeveloper&f>'
        Architect:
            default: false
            inheritance:
            - Citizen
            permissions:
            - essentials.heal
            - essentials.item
            - essentials.itemspawn.item-all
            - superpickaxe.use
            - essentials.repair
            options: null
            prefix: '&cArchitect&f>'
        Engineer:
            default: false
            inheritance:
            - Architect
            permissions:
            - worldedit.*
            - essentials.god
            - essentials.tp
            - essentials.tphere
            - lazyroad.build
            - arg.saveload
            - essentials.warp.otherplayers
            options: null
            prefix: '&cEngineer&f>'
        Moderator:
            default: false
            inheritance:
            - Engineer
            permissions:
            - srpex.rank.*
            - essentials.tp
            - essentials.god.others
            - heroicrebuke.add
            - heroicrebuke.clear
            - heroicrebuke.active
            - heroicrebuke.info
            - heroicrebuke.list
            - heroicrebuke.list.others
            - SimpleJail.jail
            - SimpleJail.unjail
            - SimpleJail.jailtime
            - 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
            - essentials.powertool
            - essentials.lightning
            - 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
            - 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
            - permissions.manage.reload
            options: null
            prefix: '&cModerator&f>'
        Admin:
            default: false
            inheritance:
            - Moderator
            permissions:
            - SimpleJail.setjail
            - heroicrebuke.*
            - essentials.*
            - backup.canbackup
            - mobarena.admin.*
            - mobarena.setup.*
            - LockIP.admin
            - srpex.rank.devloper
            - srpex.rank.architect
            - srpex.rank.moderator
            - srpex.rank.engineer
            - 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
            - mcvote.cast
            options: null
            prefix: '&cAdmin&f>'
        Owner:
            default: false
            inheritance:
            - Admin
            permissions:
            - srpex.*
            - craftbukkituptodate.download
            - craftbukkituptodate.plugin
            - craftbukkituptodate.update
            - citizens.*
            options: null
            prefix: '&cOwner&f>'
        Jailed:
            default: false
            permissions:
            - essentials.rules
            - essentials.help
            - essentials.helpop
            - BedHeal.Advanced.Use
            - heroicrebuke.list
            - essentials.list
            - essentials.mail
            - essentials.mail.send
            - essentials.mail.clear
            - IPGet.self
            - modifyworld.chat
            - modifyworld.sneak
            - modifyworld.sprint
            - chaircraft.sit
            - modifyworld.usebeds
            - modifyworld.items.have.*
            options: null
            prefix: '&4Jailed&f>'
    
    staring with moderator. has rank.citizen and .* admin inherates from mods. admin has every rank. and .*. owner inherates from admin and has .*

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

    Deleted user

    Doesn't even freaking work AT ALL. On startup this plugin doesn't even say it enables.
     
  5. Offline

    Buckethead

    is this ur first plugin to mess with because this isnt THAT broken
     
  6. Offline

    Irock23

    For some reason this seems to not be working for some people, but for others, including me, it works fine. I have no clue what is causing it to work for some and not others and I don't see how that even makes sense. I'm sorry if it is not working for you, I can see what might be wrong, but I'm not sure.
     
  7. Offline

    Buckethead

    plz do i hate pex version of this
     
  8. Offline

    baffu

    could you add configurable use of an item to rank your self up please
    also can you make it so it adds the group to the end of a users group list because I want my user to keep their "class" but get their upgrade pack of spells and I want their classes prefix to still show.
     
  9. Offline

    Irock23

    I might be able to do the item thing, if I understand what you mean. But I will not make it so it adds the group. I mainly made this for me, and I want it to change someone's group to something without them having multiple groups.
     
  10. Offline

    Deleted user

    No xD. For me it doesn't enable at all. Like there's no message.
     
  11. Offline

    Buckethead

    oh... well it at least enables for me. is this in the newest dev version or something cuz my only problem is thatit doesnt change peoples groups
     
  12. Offline

    zeben25

    Thanks for this plugin, the srpex.setrank.<group> is missing in Pex.
    Downoading.
     
  13. Offline

    Buckethead

    ok u cant laugh at this. all the crap ive been giving here is entirelly my fault as it would appear. ive been putting in perms for nodes srpex.rank.groupname. it either changed at one point or i messed up. sorry. however i do have a new problem. rank changes arent getting broadcasted. this is minimal

    nvm did reload and now it broadcasts. so after all i put u through i can now say great plugin

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

    baffu

    well I need to have it added to the end maybe a config option.
    Please :D
     
  15. Offline

    Buckethead

    hey wait a minute i wonder if this thing has sumthin to do with jailing prblems weve been having

    add what?

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

    baffu

    could you add configurable use of an item to rank your self up please
    also can you make it so it adds the group to the end of a users group list because I want my user to keep their "class" but get their upgrade pack of spells and I want their classes prefix to still show.​
    I might be able to do the item thing, if I understand what you mean. But I will not make it so it adds the group. I mainly made this for me, and I want it to change someone's group to something without them having multiple groups
     
  17. Offline

    Deleted user

    Jailing problems? OHHH with JailLikeHell? AHH I see! Were you using SetRankPEX with JailLikeHell?
     
  18. Offline

    Buckethead

    YEP!
     
  19. Offline

    blasterweb

    I have JailLikeHell too, and it is not working for me either :/
    JailLikeHell won't demote a user to the jailed group, and SRPEX wont let me change ranks to inheritances... For example if there is a VIP and I want to demote him to .. lets say Member. It then comes up with an error stating that the user is already in that group, because VIP's inherits from Members, but VIP's have some extra commands.
     
  20. Offline

    Deleted user

    Aha! Please go to JailLikeHell for more info!
     
  21. Offline

    Irock23

    If you download the latest version, which is on BukkitDEV as I am no longer updating this page, you will find that this problem has been fixed as it no longer checks what group the user is in.
     
  22. Offline

    Buckethead

    the inheritance problem is fixed in newest version
     
  23. Offline

    blasterweb

    I just installed it and now it does not work at all, damn... I am using PermissionsEX and this at the same time, and I have disabled JailLikeHell.
     
  24. Offline

    Buckethead

    doesnt work at all meaning it doesnt start up, errors? what ?
     
  25. Offline

    Herogx

    so does this mean it will change a users group to whatever,without me having to set up rank ladders on pex, for example i cant seem to get rank ladders working past the first group, so this plugin will allow me to in game promote anyways? or is just featuring a shorter command?
     
  26. Offline

    Buckethead

    shorter command
     
  27. Offline

    Deleted user

    Why didn't you say that in the JailLikeHell thread >.> XD

    Thank you :D.

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

    Buckethead

    always happy to help
     
  29. Offline

    Deleted user

    Here's the error i'm getting when I start it up:
    Code:
    [SEVERE] Could not load 'plugins\SetRankPEX.jar' in folder 'plugins': 
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
        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)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/configuration/file/YamlConfiguration
        at me.Irock23.SRPEX.SetRankPEX.<init>(SetRankPEX.java:22)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.configuration.file.YamlConfiguration
        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)
        ... 14 more
    
     
  30. Offline

    Buckethead

    im gunna guess 3 things
    1 ur cb is outdated
    2 ur java is outdated not 1.7
    3 ur config file is somehow messed up
     
  31. Offline

    Irock23

    Most likely it is because you don't have RB 1337, someone else was having a same/similar error and it was because they didn't have the latest version. It says it can't find YamlConfiguration so I would think that would be why.
     

Share This Page