PowerSlap
PowerSlap
Slapping plugin for players to abuse each other with
by Stealth2800
Version: 1.3.2
Tested on Bukkit: 1.7.9
Originally written for: The Astorea server.
Description
PowerSlap allows players to slap each other, simple enough. Slapping another player will send them flying depending on the power of your slap. Useful for moderating players or just having fun!
Features
- Slap command to nudge players around with
- Simple, flexible permission control
- Compatibility with VanishNoPacket to prevent vanished players from being slapped
Commands and Permissions
Items in [brackets] are optional, items in <angle brackets> are required
Command | Info | Permission |
---|---|---|
/slap <player> [power] | Slaps a player | powerslap.slap |
-- | Sets the player's cooldown time | powerslap.slap.cooldown.<interval> OR powerslap.slap.cooldown.exempt |
-- | Grants access to a slap power level | powerslap.slap.power.<amount> |
/powerslap bypass OR /slap bypass | Toggles admin bypass mode | powerslap.slap.admin.bypass |
/powerslap toggle OR /slap toggle | Toggles the slap movement effect | powerslap.slap.toggle |
/powerslap reload | Reloads plugin configuration | powerslap.admin.reload |
/powerslap save | Saves plugin data | powerslap.admin.save |
/powerslap version | Shows plugin version | -- |
Configuration
This plugin automatically checks BukkitDev for new versions, but does NOT automatically download them. You can disable this update check by setting 'Check for updates' to 'false' in the config.yml for the plugin.
Dependencies
- (Optional) VanishNoPacket
Upcoming Features
Request any features you would like to see in future updates!
Plugin Metrics
This plugin utilizes Hidendra's plugin metrics system. the following information is collected and sent to mcstats.org unless opted out:
- A unique identifier
- The server's version of Java
- The OS version/name and architecture
- Whether the server is in offline or online mode
- The core count for the CPU
- The location of the server
- The plugin's version
- The server's version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Servers Using this Plugin
PM me your server's IP if it has this plugin installed and I'll add it to this list!
Would it be possible to add broadcast options? such as the option to broadcast slap to everyone or just the player slapping and getting slapped, or/and also permissions to toggle the message on/off for yourself.
@marubal21
Awesome! Glad to help. :)
@Stealth2800
I included a better version of my permission groups to show you how i currently have the permissions setup for "powerslap" and each groups inheritance: http://pastebin.com/jNrwcmrq
EDIT: == SUCCESS ==
That worked, using "powerslap.slap.<power>", you should update that on the permissions list. If possible, could you add a way to prevent other players from being able to slap an admin? maybe a permission i can give, that would not let a player with that perm get slapped, even make it toggle is possible.
Thank you for all the help.
@marubal21
No, put a number. powerslap.slap.5
@Stealth2800
powerslap.slap.<power> with the "<power>" rather then a value?
EDIT: so i tried using "powerslap.slap.<power>" as the actuall permission node, nothing, i was still unable to slap a player.
@marubal21
Hm, is there any type of inheritance going on with your permissions setup? Currently, the only group that has access to the /slap command itself is 'tutor'.
EDIT: Wait a minute, I was just browsing the source of the plugin and it seems the permission node may actually be powerslap.slap.<power> - try doing that and see if that works.
@Stealth2800
i'm still not having any luck with this.
@Stealth2800
I understand that, and if you look at configs i supplied thats how i have it. But yet it gives me the " you do not have perrmission" message. Even when i give the permission directly.
@marubal21
That permission node simply grants permission to the /slap command itself. If you want to give permission to a player for specific slap power levels, you can add 'powerslap.slap.power.<amount>' as a permission (ex. powerslap.slap.power.5).
For some reason the "powerslap.slap" permission doesn't seem to be working. I can get all the other premissions/commands to work but not the /slap one, the only way i can slap someone is if i op myself.
Below are my current settings: Group Permissions: http://pastebin.com/3qFBWitf PowerSlap config.yml: http://pastebin.com/850vBeyb