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
@ridddle
The only change in 1.1.6 really was the new gamemode command format in the default config. I'm currently trying out increasing the Y cord. by 1. Will get back to you. Also... If you could determine if you have this issue on a clean server, and if not, what plugin is causing it, that would be great.
This happened recently, when I upgraded to 1.1.6. Upgrading to 1.1.8 didn’t fix the issue.
I have a lot of plugins, and all of them were in place before 1.1.6 and it all worked. However, maybe it will mean anything if I tell you that my world is superflat and mods usually teleport back to y=4 or 5.
Also, CommandHelper (it’s a plugin allowing writing scripts, which are then linked to Bukkit API) recently had to change its teleporting method adding 1 to y, because Bukkit changed something and the same thing was happening. Players teleporting 1 block into the ground, having to jump out of the block. And sometimes slowly loading chunks made them fall into void or suffocate.
@ridddle
Hmm.. weird, I just tested and had no problem. The teleport feature closely relies on the Bukkit API, so I don't think the bug is related to the plugin itself. Would you mind telling me what other plugins you use?
I’m on craftbukkit beta 1.4.6-R0.3, yes.
@ridddle
What CB are you on? On 1.4.6-R0.3 this doesn't seem to be the case.
When going off duty, my moderators seem to spawn partially in the ground – their lower body is in solid blocks. If they were standing on transparent blocks, they usually spawn even deeper in the ground, which makes them suffocate. The bug doesn’t appear when switching dimensions (like End → Overworld) but does appear when working within 1 dimension.
@UnSHaken
This is possible to do in two ways. If you have no problem with the first one, you should probably pick that one. Also make sure you have the Vault plugin installed and enabled in the Duties config:
Alt 1: Add a temporary permission group while in dutymode.
Alt 2. Add a temporary permission nodes while in dutymode.
If you want to make the permissions upgrade rank specific, this will help.
is it possible to make it so you swapped your permissions when you typed /dutymode
For example... A normal player has the rank Peasant, His actually a moderator of the server someone calls for a mod he types /dutymode and his rank turns to Mod and he gets all the Permissions for a mod I.E. By pass gamemode commands and all that but when he /dutymode's again he goes back to a ordinary player with no special abilities.
@TH3PF
Appreciate it!
Thank you! :D
@freakyy85
@wra1ths
Fixed in 1.1.8.
for me the plugin doesnt work with 2.4.6 can u fix it? thank you!
Receiving this error from time to time in 1.4.6 when going in and out of duty mode. Seems to be random, haven't noticed any particular triggers:
2012-12-24 12:09:31 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'duty' in plugin Duties v1.1.7 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer.java:547) at net.minecraft.server.v1_4_6.PlayerConnection.handleCommand(PlayerConnection.java:991) at net.minecraft.server.v1_4_6.PlayerConnection.chat(PlayerConnection.java:909) at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:853) at net.minecraft.server.v1_4_6.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112) at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:585) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:481) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:416) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/Packet at me.th3pf.plugins.duties.ModeSwitcher$Modules$onDisable.MemoryExport(ModeSwitcher.java:691) at me.th3pf.plugins.duties.ModeSwitcher.DisableDutyMode(ModeSwitcher.java:102) at me.th3pf.plugins.duties.commandexecutors.DutymodeCommandExecutor.onCommand(DutymodeCommandExecutor.java:34) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more Caused by: java.lang.ClassNotFoundException: net.minecraft.server.Packet at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 19 more
@Quinnatator
Hopefully this is all support for VanishNoPacket you need.
Hey, can you add Vanish No Packet support? Like, for example, when an admin uses /dm (or /dutymode) they also get put in vanish mode? It would make it much more efficient when, let's say, an admin wants to tp to a possible xrayer, uses /dm but also must type /v. If he forgets and tps to them, busted. :( This Vanish No Packet support would fix that. Thanks so much.
@coolo1
Yes it does.
Dyed leather armour and item descriptions.
@coolo1
I can confirm that it works with custom item names. I'm not sure what you mean by colors and law though.
Does this support 1.4 item names, colors and law?
@andyhuang
http://dev.bukkit.org/server-mods/duties/tickets/11-dutymode-list-error/