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 permissions node so that drops can be enabled if denydesiredrop is enabled?
@TH3PF Yes if you could make it so when a guard on duty kills a player the player doesn't drop there stuff so the guards can't keep there stuff and no1 else can pick it up :D that would be awesome
@austindkelly
According to the project facts of this page the latest file (Duties-1.2.0) was uploaded in Apr 23, 2013, which was certainly not 8 months ago. Were you perhaps looking at 1.1.8?
Anyway, I'm no longer a server admin myself and the only thing driving this project is therefore the community. I will keep maintaining the project and implement feature requests for as long as it's requested. I will however not implement new features on my own since I no longer have any need to. If the development stops completely I'll try to make it open source or leave it for someone else to take over it.
As for Duties 2.0, I might still develop it, but don't take my words for it.
@PrisonServers
The DisableDrops feature is only preventing death drops from the players on-duty/guards. Other players will therefore still drop their items even if they are killed by a guard.
Is what you are talking about a requested feature?
Will there be any version updating any time soon, it would seem the code has been untouched for over 8 months at this point, just curious if there are any plans to further develop this plugin.
Even though DisableDrops is set to true When I killed a player as a guard there stuff still drop why is this?
@ICantThinkOfANam3
You should take a look at the Groups addon. You can change the default, moderator and administrator groups (of the Duties Groups addon's config) to officer, captain and warden and give the these "duties.groups.officer/caption/warden" permission nodes to each PEX group respectively. Notice that you will need to do that on the bottom of the config (RegisterGroups) too. Then you may put the commands (the kits) you want the player to execute in those square brackets separated by comma.
@ImValued
Yes, "[name] went on duty." and "[name] went off duty." are the default broadcast messages for toggling dutymode. These are optional and you may change them if you desire.
@TH3PF
Ok well I have 3 duty types and I want them to get each their own Kits how would I do that also how do I make 3 types of ranks for them for example in my Permissions Ex File I got Officer, Captain, and Warden should I be doing that or set it up somehow in the config file? and do I put the kits under commands or next to it? it has this next to it [] so do I type it in there? or on the bottom Thanks!
Does it broadcast any message EX:
[name] is now on duty!
for /dutymode on
And
[name] is no longer on duty!
for /dutymode off
??
@ICantThinkOfANam3
Through Essentials
Assuming you meant the kits feature from the Essentials plugin. If that's the case, the first thing you will have to do is to define your kits under the kits section in the essentials configuration file. More info on how to do that: http://wiki.ess3.net/wiki/Command_Reference/Kits
After that it's time to add the required permissions node(s). E.g. "essentials.kits.<kitname>" to the temporary permissions section in "Duties/config.yml" and most likely enable Vault permissions (see my previous post).
Also, under the onEnable - Commands section in the same file you will need to add the "kit <kitname>" command for each kit you want to add. When that's done you should be good to go.
Using nothing but Duties
Alternatively you may specify the items directly in the Duties config. You would just add the "give %PLAYER_NAME% <itemid>" command to the CommandsByConsole section in "Duties/config.yml" for each item you would want to include in the kit.
How do I make kits for them? Just for them to use?
@naosyth
Not sure; I can't guarantee that Duties is completely out of the box compatible with all permissions plugins. Duties uses SuperPerms by default and should be compatible with all SuperPerms systems. But it seems like some permission systems ignore those calls and requires to be managed in their own ways. For that, you will need to have the Vault plugin installed and the config setting enabled (in Duties/config.yml).
Should Duties work with bPermissions out of the box, or do I need to do anything special with the config to get it to work? I have a "duty" group set up in bPermissions, but when i go on duty it isn't adding me to that group.
@drumming102
That seems to be the case (didn't test everything).
Does this ork with 1.6.2 before I take the time to spin it up on a server
@freakyy85
Leaving the config fields empty should do it.
hi i got a question. how can i disable tagapi support? i dont want the plugin to rename/recolor nicks while in duty mode.
@austindkelly
Thanks. Actually got it working now. I've switched to GM because me and another server owner cooperate and he got GM so.. Hate it thought, atleast until I can wrap my head around it :P
@austindkelly
Unfortunately not, there's no jenkins repo. Yes there will probably be an update for 1.6.