SimplePromoter
SimplePromoter
PermissionsEx promotions made easy
by Stealth2800
Version: 2.0.4 (awaiting approval)
Tested on Bukkit: 1.5.2, 1.6.1, 1.6.4
Originally written for the server: Orbis Astorea
Description
An easy alternative to promoting players with PermissionsEx that also broadcasts the change, easily letting the person know they were promoted.
This is also my first plugin! I'm working hard to improve it and would appreciate any feedback and/or constructive criticism on what I can do to make it better.
Features
- Single command for promoting players
- Ability to add player to multiple groups
- Easy permission control to limit what groups a person can promote/demote to
- Simple command to check what group(s) a player is a part of
- Plays a sound when a player is promoted (to that player only)
Commands & Permissions
Command | Info | Permission |
---|---|---|
/simplepromoter version | Shows plugin version | none |
/simplepromoter help | Shows help | simplepromoter.help |
/simplepromoter reload | Reloads plugin config files | simplepromoter.reload |
/setrank <player> <rank> [rank] ... yes/no | Set a player to a rank (or multiple). Yes/no determines if message is broadcasted | simplepromoter.setrank |
/checkrank <player> | Show what group(s) a player is in | simplepromoter.checkrank |
-- | Give permission to rank TO a certain group | simplepromoter.group.<groupname> |
-- | Give permission to rank FROM a certain group | simplepromoter.from.<groupname> |
By default, I'd suggest giving simplepromoter.from.* and simplepromoter.group.* to groups that are allowed to use this plugin. If you don't want them to promote to a group, you can do:
- -simplepromoter.group.admin
- simplepromoter.group.*
in your config file. You can do the same thing for prohibiting them from promoting from a group.
- -simplepromoter.from.admin
- simplepromoter.from.*
Dependencies
- PermissionsEx (Required)
- StBukkitLib (Required)
Upcoming Features
- Config option to change/disable promotion sound
- Ability to restrict what groups a user can promote FROM.
- (i.e. - Limit them so they can't promote a user in the administrator group)
- Support for other permission plugins (GroupManager, bPermissions, others on request.)
@BiweGas
That's already included in PermissionsEx so I don't see the need to add it in this plugin. (/pex user <user> timed add <permission> <lifetime in seconds> [world])
@Caperr
I didn't recognize that error, googled it, and it seems as if though you're running Java 6 on the server and the plugin is Java 7. Is there anyway for you to update your server to Java 7?
Error message when loading my server:
21:07:56 [INFO] This server is running CraftBukkit version git-Bukkit-1.4.7-R0.1-b2602jnks (MC: 1.4.7) (Implementing API version 1.4.7-R0.1) 21:07:57 [SEVERE] Could not load 'plugins/SimplePromoter_v1.2.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/stealthyone/simplepromoter/SimplePromoterPlugin : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:52) at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.UnsupportedClassVersionError: com/stealthyone/simplepromoter/SimplePromoterPlugin : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more 21:07:57 [WARNING] Could not get latest artifact information: FileNotFoundException 21:07:57 [WARNING] Could not get preferred channel details: FileNotFoundException
hey can u make timer for ranks example you write /setrank <user> <rank> [time] (/setrank user vip 30d (for 30 days)). Some time example: s - seconds, m- minutes, h- hours, d - days, w - weeks, M - Months, Y-year ...
@shadvalentine
Hm, this sounds like a possible addition. I may look into implementing that idea.
How it would most likely work: An admin (or player with a permission like simplepromoter.setranktoggle) can do /togglerank set <player> <rank> (/togglerank set notch administrator member). When /togglerank <player> (/togglerank notch) is activated, it'll toggle between those ranks. We'll see once I get to that. :P
On another note, I'm currently finishing up a config file for this plugin and already got a config for turning broadcasting messages off.
Wow .. it is late ... I read that as a current feature ..
and do you think you could add the ability for a user to use /setrank with nothing else and it would check the permission and put them to what ever permission is set for them
Like if an Admin used /setrank and have the node simplepromoter.setrank.AdminOP it would move them to AdminOP. Then in that rank i would add simplepromoter.setrank.Admin and it would move them back the Admin Group
I would like to have a simple toggle for them to turn ther Admin powers on and off without losing the lable of Admin
Or even use the command /setrank toggle .. or something like that .. it would be nice if they did not have to enter there name
@shadvalentine
"Upcoming Features:
Compatibility for groups with spaces in the name
Configuration options for broadcasting + the message broadcasted"
As stated in the main post.
how do you turn of the broadcast message .. I do not see a config file ore even a folder
I am the first downloader :)
@Matthew587
The plugin file hasn't been approved yet. Hopefully it will soon.
Download Link?