Duties
UPDATE: I (chaseoes) am now updating this plugin. I'm working on improving it and you can expect an update soon!
Duties provides a mode for admins and mods (those who do have the permission) which lets you save all your survival stuff and later be able to revert back to it. For example, you are adventuring in a cave, and someone tells you that someone has griefed his house. Just type /dutymode and go investigate it. When you're done, just type it again, and you are back again with all the stuff you had before.
Current version: 1.4.2 for CraftBukkit [1.6.4.R1.0]
Features:
- Save your state for later
- Location (including where you are looking, and what world you are in...)
- Inventory
- Armor
- Health
- Hunger
- Experience
- Saturation
- Exhaustion
- Gamemode
- Fire ticks
- Potion Effects
- More... velocity, vehicles, remaining air, bed spawn...
- Keep duty mode on while offline
- Set other players mode
- Run configurable commands when enabling and disabling the mode
- Add temporary permissions while in duty mode
- Add temporary groups while in duty mode
- Remind players that they have duty mode on when...
- logging in while Keep-state-offline is on
- opening chests
- dropping items
- Broadcasting status changes for example: "ThePf went on duty." Fully customizable.
- Individual broadcast bypass
- Option to change every message that the user will get when using Duties
- Vault permissions and name formatting support
- List players with dutymode on
- Chest interact, item drop, death drops, kill drops prevention
- TagAPI support
- custom prefixes
- custom suffixes
Addons - extends the feature reach of the original plugin:
- Groups by TH3PF, idea by retricide - Have diffrent kinds of dutymodes for diffrent ranks...
- Stats by TH3PF, idea by devonpilney - See how long players have been on duty and log commands etc..
Known issues:
- Players who are offline and on-duty when the server stops or reloads will keep there on-duty postion off-duty
Commands: (Every /dutymode can be replaced by /duty and /dm)
- /duties help - Shows the help for the plugin.
- /duties reload - Reloads the plugin.
- /duties disable - Disables the plugin.
- /duties updateconfig - Updates the configuration without sacrificing already existing data
- /dutymode (toggle [Player]) - Toggles the duty mode for yourself [or for another player]
- /dutymode enable/on [Player] - Enables the duty mode for yourself [or for another player]
- /dutymode disable/off [Player] - Disables the duty mode for yourself [or for another player]
- /dutymode list - Shows a list of which staff players have duty mode on
- /dutymode listall - Shows a list of which players have duty mode on
- /dutymode hideb [Player] - Disables the broadcast feature for yourself [or for another player]
- /dutymode showb [Player] - Enables the broadcast feature for yourself [or for another player]
- /dutymode purge - Forces all players off dutymode
More: Configuration & Permissions
Is there a way to specify multiple TemporaryGroups? I need to have one for myself and another for my moderators.
@CoolOppo
@Chrono7
Fixed that in this update: http://dev.bukkit.org/server-mods/duties/files/25-duties-1-1-1-jar/ Weird it didn't show up in the debug.
@Chrono7
I get that same exact thing.
Whenever I try to enter dutymode, I get "Duty mode activation failed or interrupted!"
Also, in the console:
2012-03-29 17:19:00 [INFO] [Duties 1.1] Failed while reading cleanup tasks: null 2012-03-29 17:19:00 [INFO] [37mSet game mode creative for Chrono7.[0m
@potatoboy2
If you use Vault you can hopefully use both TemporaryGroups and TemporaryPermissions. But the workaround probably works out the best for you.
@TH3PF
Yeah, it seems to work for me to just create a group named "Duty" in permissions, give that group whatever temporary permissions I would like, then run "pex user %PLAYER_NAME% group add Duty" onEnable, and "pex user %PLAYER_NAME% group remove Duty" onDisable. I might try it with Vault just for testing though.
@potatoboy2
Yeah, that's probably the most reliable way. The Vault permission option should work though...
@TH3PF
I could just do the workaround that Paranormalcow_ did, which is just run a console command for PEX to change the user's group.
@potatoboy2
Enable Vault permissions (and make sure you have Vault). Yeah, It's probably because of PEX.
@TH3PF
Hmmm, I thought I tried that, I guess I'll have to try it again and see...
Edit: No, it's not working for me, even when using the "Temporary Permissions" in config. I'm using it exactly like it is shown in the example config, but it's just not working. Is it because I'm using PEX?
@potatoboy2
It's called "TemporaryPermissions" and they are located in config.yml. Well this isn't an example config but there's a comment on every line telling you what it does. There's actually an example of a permission node for TemporaryPermissions in the default config. (herp.derp: true).
It's not obvious to me where I actually put the permissions that the player with duty-mode on gets... Do I put it in the permissions file (permissions.yml) or do I put it in the config.yml for duties? I'm just thinking that it might be best to have some kinda of example config that shows how it should be set up, not just the default config.
Thanks!
Excellent plugin - help differentiate between duties and play for my admins. It works great, thanks!
Using PEX? You might wanna read this https://github.com/PEXPlugins/PermissionsEx/issues/329
@danbovey
The original idea was actually from http://forums.bukkit.org/threads/admin-mode.7648/
But I was only inspired from that when I made this.
Don't know whether you came up with this idea but this plugin is epic. thanks!
Nice plugin, perfect for server mods and admins which also want to play a bit on their own creation!
@TH3PF
I got it working the way I want! I just have it run the console command "pex group owner add *" When I switch to, and remove when I exit. Took a bit of fiddiling, but now I'll be able to play with my players, without all my extra crap in the way. :)
@SofaKingh4rd
You have to enable 'Broadcast-duty-changes' in the config (and only other players can see the broadcast message btw), and plugins like Essentials makes Duties invert the gamemode instead of setting it, you can fix this though.
When I do /duty it does not broadcast it, and why does it set u to survival and not creative?