duty-revived

last built 2 weeks ago
Build #27
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Community Plugin
This plugin is maintained by the RocketMod Community.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

Duty Revived

Originally made by Ev1dentFir3.

Original Repository For The Plugin: https://github.com/Ev1dentFir3/Duty

 

I do not take any credit for the plugin, it is all made by Ev1dentFir3, but he hasn’t updated it in a while, so I decided to fix up a bit of the code, translations, commands, and re-upload it to rocketmod so that everyone can download it again.

 

Current features:

  • Players with permission to duty (configurable all the other permissions) can get specified commands in a different permissions group by doing the in-game command /duty.
  • Players with permission to duty.check or the console can do /dc or /dutycheck to check if a player is on admin mode.
  • Configuration to toggle if when players get on duty or off duty it is said on chat.
  • Configuration to toggle if admin should be removed when the player goes off the server.
  • Configuration to enable or disable dutycheck.
  • Configuration to change chat color messages.
  • Configuration of custom duty groups.

Permissions:

Commands: Permissions:
/duty or /d duty
/dutycheck or /dc duty.check

 

Perfectly working permissions file + configuration:
Configuration: https://hastebin.com/isidaluyim.xml
Permissions: https://hastebin.com/xinekatoca.xml

Feel free to suggest any new features or bugs that you find.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<DutyConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <EnableServerAnnouncer>true</EnableServerAnnouncer>
  <RemoveDutyOnLogout>true</RemoveDutyOnLogout>
  <AllowDutyCheck>true</AllowDutyCheck>
  <MessageColor>red</MessageColor>
  <SuperAdminPermission>duty.superadmin</SuperAdminPermission>
  <Groups>
    <DutyGroups>
      <GroupID>Administrator</GroupID>
      <Permission>duty.admin</Permission>
    </DutyGroups>
    <DutyGroups>
      <GroupID>Moderator</GroupID>
      <Permission>duty.mod</Permission>
    </DutyGroups>
    <DutyGroups>
      <GroupID>Helper</GroupID>
      <Permission>duty.helper</Permission>
    </DutyGroups>
  </Groups>
</DutyConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="admin_login_message" Value="{0} has logged on and is now on duty." />
  <Translation Id="admin_logoff_message" Value="{0} has logged off and is now off duty." />
  <Translation Id="on_duty_message" Value="{0} is now on duty." />
  <Translation Id="off_duty_message" Value="{0} is now off duty." />
  <Translation Id="check_on_duty_message" Value="{0} has confirmed that {1} is on duty." />
  <Translation Id="check_off_duty_message" Value="{0} has confirmed that {1} is not on duty." />
  <Translation Id="not_enough_permissions" Value="You do not have the correct permissions to use duty." />
  <Translation Id="error_unable_checkduty" Value="Unable To Check Duty. Configuration Is Set To Be Disabled." />
  <Translation Id="error_cplayer_null" Value="Player is not online or his name is invalid." />
  <Translation Id="error_dc_usage" Value="No argument was specified. Please use &quot;dc &lt;playername&gt;&quot; to check on a player." />
</Translations>

Commands and permissions


/dutycheck <playername>

Permissions: dutycheck

Checks if a player has admin powers or not.


/duty

Permissions: duty

Gives admin powers to the player without the need of the console.


Git changelog


80214c54eacd2b2 2019-07-18 20:06:34

Fixed license copyright.

    a7230153ff22cd8 2019-07-18 19:01:08

    Changed license.

      7ebdc1a5f1ae245 2019-06-20 10:32:53

      Fixed.

        006fec04c0247f5 2019-04-23 15:44:05

        Testing CI, attempt fix in references

          0f02c97dbd502b0 2018-08-16 17:36:45

          Reorganized Repository

            38487a4964f0369 2018-08-16 17:26:14

            Rebase HideServerInfo

              1f11bf28d1365b5 2018-08-16 17:25:42

              Add Hide Server Info

                da94ed4056a9543 2018-08-16 17:25:03

                Rebase Jobs

                  72b308c4f09c350 2018-08-16 17:24:25

                  Add Jobs

                    34eda2fd3ed6e18 2018-08-16 17:21:40

                    Rebase PluginTemplate

                      9f4e342dd014dd5 2018-08-16 17:21:04

                      Add Plugin Template

                        ed6ebcac09fa699 2018-08-16 17:15:57

                        Rebase AdminOverride

                          efdbd68b8aa01ea 2018-08-16 17:15:19

                          Add Admin Override

                            6c88e07483fd8b9 2018-08-16 17:14:50

                            Rebase AntiAFK

                              d3e2e9083ec2884 2018-08-16 17:14:08

                              Add Anti-AFK

                                1df730fc6214b08 2018-08-16 17:12:36

                                Rebase Rules

                                  b1fb3206074dc0c 2018-08-16 17:11:09

                                  Add Rules

                                    48921c4ee77da12 2018-08-16 17:09:23

                                    Rebase IP

                                      8d48082186eaeed 2018-08-16 17:08:39

                                      Add IP

                                        731fffad1d46190 2018-08-16 17:07:35

                                        Rebase Tools

                                          361e287c1360ca9 2018-08-16 17:06:40

                                          Add Tools

                                            db8c8bb79874dd1 2018-08-16 17:05:53

                                            Rebase Duty

                                              427ee891b924072 2018-08-16 17:05:18

                                              Add Duty

                                                06b82c1f45bf633 2018-08-16 17:04:39

                                                Rebase RobAndRaid

                                                  a219ee4ee05fb97 2018-08-16 17:03:50

                                                  Add Rob and Raid

                                                    ef24fab4a959e30 2018-08-16 16:59:19

                                                    Add README.md

                                                      9f2f27d48a0aeb8 2018-08-10 09:49:03

                                                      Added hide plugins & hide workshop items

                                                      • Fixed missing references.
                                                      • Renamed project according to what it does now.

                                                      ae697d6460afc35 2018-07-21 09:23:42

                                                      Added Suggestion CommandJobKick.cs

                                                      • Updated details in AssemblyInfo.cs
                                                      • Removed bin/Release folder (Not needed)
                                                      • Added CommandJobKick.cs
                                                      • Fixed target framework in RocketJobs.csproj
                                                      • Removed Build from RocketJobs.cs
                                                      • Added new translations to RocketJobs.cs
                                                      • Updated .gitignore to ignore all visual studio files + the visual studio code tasks directory (or whatever else its supposed to have in there)

                                                      06ca9f29a229b56 2018-07-09 21:55:37

                                                      Updated example plugin to RM5

                                                        555a664905a3b5c 2018-04-03 10:55:00

                                                        Fix unload

                                                          329671d6fb27780 2017-10-24 10:04:08

                                                          Add files via upload

                                                            38db8bbb97bd615 2017-10-24 10:03:46

                                                            Initial commit

                                                              21c58094efb34be 2017-10-24 09:24:25

                                                              Create LICENSE

                                                                ee5f37d7cd41077 2017-10-24 09:21:35

                                                                Create LICENSE

                                                                  3dde5042103e823 2017-10-24 09:14:14

                                                                  Add files via upload

                                                                    5b75fd6a621f85d 2017-10-24 09:13:56

                                                                    Initial commit

                                                                      810c6bcb0a9a0c8 2017-10-24 09:03:11

                                                                      v1

                                                                      • Doesn't include libraries.

                                                                      b8713cf87fa3056 2017-10-24 09:02:50

                                                                      Initial commit

                                                                        5c6eb1842c2b469 2017-06-30 23:17:35

                                                                        Create LICENSE.md

                                                                          759d8385e564d8d 2017-06-30 23:17:21

                                                                          Create LICENSE.md

                                                                            5300c9dd3c75ffa 2017-06-30 23:17:05

                                                                            Create LICENSE.md

                                                                              8f9c727b07cc5af 2017-06-30 23:14:48

                                                                              Create LICENSE.md

                                                                                71e37030701dc5d 2017-06-12 07:54:07

                                                                                Latest Update

                                                                                • Added multi/custom duty groups.
                                                                                • Fixed a few issues.

                                                                                e238f56085115b7 2017-06-11 19:08:17

                                                                                Latest Rocket Update

                                                                                • Build #4

                                                                                3b0ffafa13846f0 2017-05-09 06:58:36

                                                                                Update AssemblyInfo.cs

                                                                                  3354e5a44fe0251 2017-05-08 07:26:34

                                                                                  Add files via upload

                                                                                    e9161057f413878 2017-05-08 07:23:54

                                                                                    Update MainTemplate.cs

                                                                                      4e1f2346b1bd9fc 2017-04-17 14:29:16

                                                                                      Build #3

                                                                                        594f040f3ffa42d 2017-04-17 14:13:08

                                                                                        Build #2

                                                                                          69af6924f3675aa 2017-04-17 13:42:32

                                                                                          Release #1

                                                                                            1ede06c7190a14f 2017-04-17 13:33:01

                                                                                            :tada: Added .gitattributes & .gitignore files

                                                                                              7c8375312a45de7 2017-04-09 20:04:34

                                                                                              Fixed Code

                                                                                                877a680328ca922 2017-04-09 19:42:31

                                                                                                Update README.md

                                                                                                  f942aab3b0c8ad6 2017-04-09 19:19:01

                                                                                                  ...

                                                                                                    0821413007cb30f 2017-04-09 19:17:49

                                                                                                    Add files via upload

                                                                                                      136f7c517814023 2017-04-09 19:09:08

                                                                                                      Yep...

                                                                                                        0356165cdbe201c 2017-04-09 19:08:38

                                                                                                        Oh my gosh

                                                                                                          d742c7b259ad19f 2017-04-09 18:28:49

                                                                                                          Fix again...

                                                                                                            37363abc5ece6e9 2017-04-09 18:22:10

                                                                                                            Small Changes

                                                                                                              4439b0572536a3f 2017-04-09 18:14:29

                                                                                                              First Upload

                                                                                                                80e488a78a5bc40 2017-04-09 18:13:31

                                                                                                                Initial commit

                                                                                                                  c0d3c2daf440f30 2017-04-02 16:04:13

                                                                                                                  Build #6

                                                                                                                  • Patched issue with `/jobadmin clear <job name>`
                                                                                                                  • Patched issue with `/jobs <private | public> <page>` throwing an error
                                                                                                                  • on the last page.

                                                                                                                  e62630ba98bf446 2017-04-01 12:02:36

                                                                                                                  1.0.0.0

                                                                                                                    4558e22b4e6d011 2017-03-29 16:18:51

                                                                                                                    Add version display

                                                                                                                      2ad7d0216ff2193 2017-03-29 16:08:13

                                                                                                                      Update MainTemplate.cs

                                                                                                                        53627b0a1401f48 2017-03-28 20:49:19

                                                                                                                        Bug Fixes

                                                                                                                        • Fixed most of the bugs that happened in the plugin.

                                                                                                                        59f27e567419411 2017-03-28 13:06:46

                                                                                                                        Fix

                                                                                                                        • Fixed missing translation values.
                                                                                                                        • Removed unused translation.

                                                                                                                        0669db694a52c30 2017-03-28 08:48:20

                                                                                                                        Fix error when group doesn't exist.

                                                                                                                          a3b9a3a0bc9b923 2017-03-28 08:31:09

                                                                                                                          First Release

                                                                                                                            82b07571a7b089f 2017-03-28 08:11:41

                                                                                                                            :circus_tent: Added .gitattributes & .gitignore files

                                                                                                                              86bd0f274d84348 2017-03-23 10:22:02

                                                                                                                              Referencing Error/Problem

                                                                                                                                de9661230c5eb0d 2017-03-23 10:19:05

                                                                                                                                Still fixing rocket compatibility.

                                                                                                                                  9f77bf747780a4c 2017-03-23 10:13:51

                                                                                                                                  Few Changes

                                                                                                                                    9261ee2ead9c93c 2017-03-22 09:51:35

                                                                                                                                    Fix Forgotten features.

                                                                                                                                      6246467498c5d1c 2017-03-22 06:56:05

                                                                                                                                      Suggestion Implemented

                                                                                                                                      • Removed UnityEngine.CrashLog.dll
                                                                                                                                      • Added Suggestion To Switch admins with permission duty.admin to an admin
                                                                                                                                      • group and then out, and so forth with Moderator and Helper groups.
                                                                                                                                      • duty.superadmin permission is used for someone who is allowed to be in
                                                                                                                                      • "/admin" permissions

                                                                                                                                      f8bc2417506c394 2017-03-18 19:03:37

                                                                                                                                      Code With Explenations

                                                                                                                                        80b2f63d05d111a 2017-03-18 19:03:06

                                                                                                                                        :octocat: Added .gitattributes & .gitignore files

                                                                                                                                          a9cf9b2127175b8 2017-03-12 19:24:56

                                                                                                                                          Fix error with jenkins

                                                                                                                                            cfae108c78d5ff9 2017-03-12 19:20:48

                                                                                                                                            Fix non-findable release folder

                                                                                                                                              6921f6fa1bb0c78 2017-03-12 19:14:59

                                                                                                                                              v1.0

                                                                                                                                              • Uploaded code.

                                                                                                                                              fa7c82a4e084012 2017-03-12 19:14:01

                                                                                                                                              :neckbeard: Added .gitattributes

                                                                                                                                                263c31b213de2fe 2017-01-15 17:58:10

                                                                                                                                                Fix

                                                                                                                                                • Changed translation fix to work with old versions of duty whilst still
                                                                                                                                                • working with latest version of duty.

                                                                                                                                                11f5efde3e656ec 2017-01-14 20:44:25

                                                                                                                                                Fix Translation Bug For DutyCheck

                                                                                                                                                  fcf3b2aaee7740f 2017-01-14 17:12:08

                                                                                                                                                  Update

                                                                                                                                                  • Fixed unityengine ambiguity with logger
                                                                                                                                                  • Updated unityengine.dll

                                                                                                                                                  ff4e88ed0e79a7a 2017-01-14 16:57:37

                                                                                                                                                  Cleaned bin\release and reconfigured it.

                                                                                                                                                    9ce15c7f056600a 2017-01-14 16:51:16

                                                                                                                                                    Update to latest Rocket requirements

                                                                                                                                                      86636fafb4f3f6e 2016-11-12 22:01:19

                                                                                                                                                      Update README.md

                                                                                                                                                        da0cc0e55559cf0 2016-11-10 12:24:01

                                                                                                                                                        asf

                                                                                                                                                          0b95157c433dc7b 2016-11-10 11:47:42

                                                                                                                                                          V 2.0.0.1

                                                                                                                                                          • Fixed error for the permissions for the command
                                                                                                                                                          • Removed temporary files/non used files

                                                                                                                                                          1463d8ac9e8dc52 2016-11-08 16:20:54

                                                                                                                                                          Version 2.0.0.0

                                                                                                                                                          • Increased ammount of rules. Pasting multiple more <Rule>...</Rule> settings allows for more rules.
                                                                                                                                                          • Added paging for when there is more than 3 rules.
                                                                                                                                                          • Added more notifications.
                                                                                                                                                          • Simplified translations.
                                                                                                                                                          • Fixed some minor errors (including command execution + syntax)

                                                                                                                                                          61111bdd51c9171 2016-11-08 16:19:26

                                                                                                                                                          Version 2.0.0.0

                                                                                                                                                          • Increased ammount of rules. Pasting multiple more <Rule>...</Rule>
                                                                                                                                                          • settings allows for more rules.
                                                                                                                                                          • Added paging for when there is more than 3 rules.
                                                                                                                                                          • Added more notifications.
                                                                                                                                                          • Simplified translations.
                                                                                                                                                          • Fixed some minor errors (including command execution + syntax)

                                                                                                                                                          9715c15616125ed 2016-11-07 15:26:32

                                                                                                                                                          Version 1.0.1.0 - the readme.md fix

                                                                                                                                                            f0986270febee90 2016-11-07 11:20:58

                                                                                                                                                            Version 1.0.1.0

                                                                                                                                                            • Added setting to display messages on player connect
                                                                                                                                                            • Changed console logging color
                                                                                                                                                            • Added logging of current settings in console

                                                                                                                                                            e63959faffce046 2016-11-07 09:39:10

                                                                                                                                                            Added build status + download

                                                                                                                                                              0a43fd81c92fd3a 2016-11-07 09:14:59

                                                                                                                                                              Bug

                                                                                                                                                              • Fixed a bug with the syntax asking for player. It has been removed.

                                                                                                                                                              d5bef2208fd4599 2016-11-07 09:04:21

                                                                                                                                                              Changed name to fix build issue

                                                                                                                                                              • Applying to rocket standards

                                                                                                                                                              855d6238f1f5664 2016-11-07 09:00:45

                                                                                                                                                              Added Lib folder

                                                                                                                                                              • Applying to rocket standards

                                                                                                                                                              7d47ab6acb76117 2016-11-07 08:58:43

                                                                                                                                                              Changed order of files

                                                                                                                                                              • Applying to rocket standards for plugins

                                                                                                                                                              f344f0317e39b44 2016-11-07 08:53:49

                                                                                                                                                              Fixed translation and config boxes

                                                                                                                                                                6529d33896e072e 2016-11-07 08:50:59

                                                                                                                                                                Version 1.0.0.0

                                                                                                                                                                • Finnished first public build.

                                                                                                                                                                5d1a4fdbe45dabe 2016-11-07 08:00:15

                                                                                                                                                                :boom::camel: Added .gitattributes

                                                                                                                                                                  3f3a1dd09f4b04f 2016-06-17 03:36:24

                                                                                                                                                                  Updated to Rocket V4.9.6.0

                                                                                                                                                                  • Updated to latest version after recent break due to updates

                                                                                                                                                                  03dceef6eccb185 2016-02-08 21:22:33

                                                                                                                                                                  Update to Rocket 4.9.0.0

                                                                                                                                                                  • Sorry it took so long, I had been going through a tough time at work,
                                                                                                                                                                  • got a new job and things are good now, hope to be more active soon!

                                                                                                                                                                  45ef0b851126bb5 2015-08-26 04:03:11

                                                                                                                                                                  Updates for Rocket

                                                                                                                                                                  • Updates for Rocket

                                                                                                                                                                  4c86fd2ba43f104 2015-08-07 23:13:32

                                                                                                                                                                  Update to Rocket 4.6

                                                                                                                                                                  • Updated to Rocket 4.6, and added console check to avoid errors.

                                                                                                                                                                  fd10af5d8dcc0fb 2015-07-17 15:32:47

                                                                                                                                                                  Updated Namespace

                                                                                                                                                                  • changed namespace from EFG to EFG.Duty

                                                                                                                                                                  c9c2e165e87fac9 2015-07-10 04:04:19

                                                                                                                                                                  Plugin Rewrite

                                                                                                                                                                  • Added translation and configuration options. Added options to unadmin on
                                                                                                                                                                  • logoff, announce if admin on sign on, and chat color.

                                                                                                                                                                  fde59ec6f60e7b0 2015-07-07 20:47:08

                                                                                                                                                                  Release Version

                                                                                                                                                                  • Added class required to make plugin load into rocket, and added on and
                                                                                                                                                                  • off duty server messages.

                                                                                                                                                                  74e1c80124db2ca 2015-06-24 04:22:38

                                                                                                                                                                  Fixed Command

                                                                                                                                                                  • Typos in the command text