duty-revived

#7 - published a year ago

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


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

Latest Update

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

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

    553c7dc36de9108 2017-03-19 10:59:42

    Merge remote-tracking branch 'refs/remotes/Ev1dentFir3/master'

      90aeda0f4140c8d 2017-02-01 00:41:05

      Merge pull request #3 from persiafighter/master

      • Update to latest rocket, few fixes, removed unused files.

      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

            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

            Download

            Build #7
            By downloading this file, you agree to our license terms.

            Repository

            github.com

            License

            MIT

            Author

            persiafighter