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.)
Any news on a update? Still getting the error on 1.5.2
I'm not sure if this has to do with the error but...
at com.stealthyone.bukkit.simplepromoter.BasePlugin.onEnable(BasePlugin.java:40) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_5_R2.MinecraftServer.j(MinecraftServer.java:303) at net.minecraft.server.v1_5_R2.MinecraftServer.e(MinecraftServer.java:282) at net.minecraft.server.v1_5_R2.MinecraftServer.a(MinecraftServer.java:242) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:150) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
@QuAd205
That's exactly what I need, thanks. I'll look into it once I find the time. The plugin's in need of an update anyways. :P
EDIT: Is that the full error? If you could, could you post the entire error log? It would be more helpful for me.
[SEVERE] Error occurred while enabling SimplePromoter v1.4.1 (Is it up to date?)
at com.stealthyone.bukkit.simplepromoter.BasePlugin.onEnable(BasePlugin.java:40)
That's all I could find in the server log with "simplepromoter"
And i'm using /setrank [player] [rank]
@QuAd205
There should be some kind of error on the console. If I remember correctly, I was also having problems with something in the plugin, meaning it could possibly have the same error I was having.
What command are you using? Also, post any errors that might be in the console.
@Stealth2800
There's no errors or anything when issuing the command. When setting someone to a rank, it just shows how to use the command similar to typing /setrank
@QuAd205
Can you post the stack trace for me, please?
Plugin isn't loading up properly on 1.5.1
I have 1 more request, lol. Maybe a command to set a player to the next rank? Groups could be configured in the config possibly and the command might be /promo [user].
@QuAd205
Hopefully sometime soon, no definite answer I'm afraid. I've been incredibly busy with other things lately. :P
@Stealth2800
Plugin is still working on 1.5 but is there any ETA on a release? Really looking forward to the new features! :)
@QuAd205
Got it working for the most part. It has a few problems with a player being OP though. Once time permits, I'll fix that and upload an update.
@Stealth2800
Also if you can, Is it possible to add a custom defined message for each group? For ex. when promoting somone to 'Mod', the broadcast could be a custom message like "[player] was promoted to [group]". So instead of the actual PermissionsEx group names, it would be a custom name for groups listed in the config.
I hope you understood, lol
-QuAd205
@QuAd205
Ah, I see what you mean. I'll definitely add that. Thanks for the suggestion!
@Stealth2800
Alright thanks but let's say a player is Owner, and you don't want a moderator setting a rank for 'owner', basically a permissions to deny setting a rank for a group.
-QuAd205
@QuAd205
I just updated the description. /setrank reload is now /simplepromoter reload
You can already deny permissions using normal PermissionsEx syntax -> -permissionnode.subnode If you wanted to deny access to the 'Admin' group, for example, you would put -simplepromoter.setrank.admin
Very nice plugin, but /setrank reload doesn't work. Also if you can, can you add the ability to deny specific groups from promotion? That would be great!
-QuAd205
PEX is confusing -_-
@DerekZil
Promote AFTER a certain amount of time? I'm not entirely sure if that's possible with PEX.
@Stealth2800
Can you tell me how to promote users to a group after some amount of time? I never knew PermEx could do that alone. o_O