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
@TH3PF
I've just tried giving that node to the moderator rank, and set it up in the groups.yml
No dice - "You don't have permission to do that!"
Groups: http://pastie.org/private/oxo7n5qrcwtv7p1hwlvpyq
Config: http://pastie.org/private/sykwvvgvw8rcxvtgw4fruw
@mobilephone2003
The way the groups addon works is that it performs certain actions depending on if the user has a specific permission node.
This means that if for example the user has the "duties.groups.moderator" node, the actions taken will be according to what the moderator group configuration says.
Was this the explanation you were looking for, or would you mind being more specific?
@TH3PF
Seems to work good now, although i'm using a pex command to rank and derank an administrator.
If I wanted to have a Moderator and Administrator have their ranks kept, is there a way to do this? I see the groups addon but I'm a bit confused
@mobilephone2003
Replied to the ticket. Also it seems like you got the reload command wrong. It's supposed to be /duties reload" instead of "/dm reload". I would agree that the error message is a bit confusing.
@TH3PF
Can't get my head around this.
With both your versions (Current on BukkitDev and the Release Candidate below) giving duties.mod and duties.admin to 2 different ranks, unless the player is op they get "You don't have permissions to do that!"
This is both with Vault set to true or false
Using PermissionsEx v1.19.5 and Vault v1.2.24-b304
/dm reload, also results in "Couldn't find command extension"
I've created a ticket for this issue
@GlitchLoop
Will do some more test runs. The release candidate is much likely to be the final version though.
When are you releasing the new update?
@Nederlandhc
You can have this release candidate of Duties 1.2.0.
Is there any news on a 1.5 update?
Since the last comment has been posted a month ago.
@ryan_the_leach
Sure, here is the current code: http://bit.ly/Xe04dC. Expect some dirty bits though.
Hey is there any chance of the source code for the current version of duties being released, or is it just the next gen mcapi one thats available.
@skvll
Some breaking changes has been made with CB 1.4.7 and I'm still trying to work the new bugs out. The only one left which I'm aware of is this one. There are also some fixes, which are not yet pushed to the downloads since I don't want to spam you with updates. You should be fine with 1.1.8 on 1.4.7 though.
just an a question, i seen there is R: Duties-1.1.8 for CB 1.4.6-R0.1 Dec 25, 2012 only...
since we'are at 1.4.7 and i seen you solved something.... there is any build versione or something like that? or this version is the latest?
@TH3PF
Nope, but thanks for the offer! Was mostly just wondering if there was a native method. I did some more research and will be using PEX's Modifyworld to deny those permissions to people who enter Duty mode. Thanks!
@MKindy
There's no support for that built-in, but you can however use other plugins to accomplish that. As you might already know, Duties supports commands to be executed and permissions to be added/removed when entering and quitting dutymode. Some plugins might have commands for restricting block placements/breaks. Permission plugins usually restrict that with permission nodes.
Do you need any help setting that up?
@TH3PF
Hi, TH3PF! I was wondering if you know of a way (and maybe Duties supports it and I've just overlooked it) to prevent people who are in /dutymode from breaking/placing blocks or from dropping blocks?
@josephrooks
In this case Vault is used as a compatibility layer between Duties and the permission plugin. Without using Vault I couldn't guarantee that the temporary permissions and groups would be detected by the permission plugin.
For example (when last tested) permissionsBukkit worked excellent just by adding the permissions through Bukkit (SuperPerms), while permissionsEx wouldn't detect them at all. Simply put, if Vault supports your permission plugin, Duties does too.
@TH3PF
Fixed it for me, noticed an immediate change in my height when I teleported back (looks like by ~ half a block instead of having to jump out of the floor, when it didn't drop me lower and suffocate me completely). I haven't been stuck in anything since.
Based on the documentation for this I can't see why Vault is useful, could you elaborate? Is it required for Duties Groups? I'm not using it right now for anything and I can't see what it's being used for here that I can't do without it.
@ridddle
@josephrooks
I've tried that and here's the result.
I'm having the same problem. Many times, I switch out of modmode and find myself stuck in the ground and suffocating; Have to go into modmode and break things to save myself. Any word on whether or not increasing the coord by 1 was able to avoid this?