jobs

last built 4 days ago
Build #16
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.

Jobs

This plugin was built from scratch to give something to those role play servers that can’t afford to buy the jobs plugin from Trojaner.

Some ideas (like the admin command to control the jobs) were taken from Trojaner’s jobs plugin.

Configuration:

Configuration Description
AnnounceJobJoin Self-descriptive. This setting will allow to announce when a player joins a job.
EnablePlugin Self-descriptive. This setting will enable or disable the plugin.
PublicJobs Set or group of jobs that are “public”, that meaning anybody can join and leave them at any time.
PrivateJobs Set or group of jobs that are “private”, that meaning that a player in the LeaderPermissionGroup specified has to accept them.
JobName (private and public) Self-descriptive, the name of the job.
PermissionGroup (private and public) Self-descriptive, the group in the permissions file that this job will use.
LeaderPermissionGroup (private only) This is the group of the leader of the private job. The leader should be able to accept players when they request to join, so make sure that this is not the same as the PermissionGroup for the job.

Permissions:

Command What it does Permission
/jobs Lists the available jobs jobs
/joinjob Joins or applies to a job joinjob
/leavejob Leaves your current job leavejob
/acceptjob Accepts an applicant into the job acceptjob
/jobadmin Controls the jobs and allows to clear a job or force someone into a job jobadmin

Translation:

(too long to list here, see the translation tab below OR THE FILE DIRECTLY)

Notes:

For this plugin to work you MUST create the permissions/commands for the jobs in the permission file of rocket FIRST.

Build #4 fixed errors with ALL of the commands. If one of them doesn’t work please make sure you have everything CORRECTLY set-up. I’ve tested this plugin on my own server with correct configuration and it works. I would love if people could report issues with incorrect configuration so that I can make sure on future builds to fix the issues.

Since Build #3, anyone who used build #1 and #2 SHOULD regenerate the translations file due to a change in it.

Examples:

Example permissions file.
Example plugin config file linked to the permissions file above.

Youtube Video On How To Configure:

Please report any bugs that you find and feel free to submit any suggestions.

If you like my work, feel free to donate with either of these options:
Bitcoin address found in my keybase profile
or
Paypal

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<RocketJobsConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AnnounceJobJoin>false</AnnounceJobJoin>
  <EnablePlugin>true</EnablePlugin>
  <PublicJobs>
    <Jobs>
      <JobName>Taxi</JobName>
      <PermissionGroup>Taxi</PermissionGroup>
    </Jobs>
    <Jobs>
      <JobName>Cook</JobName>
      <PermissionGroup>Cook</PermissionGroup>
    </Jobs>
    <Jobs>
      <JobName>Trader</JobName>
      <PermissionGroup>Trader</PermissionGroup>
    </Jobs>
    <Jobs>
      <JobName>Farmer</JobName>
      <PermissionGroup>Farmer</PermissionGroup>
    </Jobs>
  </PublicJobs>
  <PrivateJobs>
    <PrivateJobs>
      <JobName>Military</JobName>
      <PermissionGroup>Military</PermissionGroup>
      <LeaderPermissionGroup>Military Leader</LeaderPermissionGroup>
    </PrivateJobs>
    <PrivateJobs>
      <JobName>Police</JobName>
      <PermissionGroup>Police</PermissionGroup>
      <LeaderPermissionGroup>Police Leader</LeaderPermissionGroup>
    </PrivateJobs>
    <PrivateJobs>
      <JobName>Special Operations</JobName>
      <PermissionGroup>Spec Ops</PermissionGroup>
      <LeaderPermissionGroup>Spec Ops Leader</LeaderPermissionGroup>
    </PrivateJobs>
    <PrivateJobs>
      <JobName>Gun Seller</JobName>
      <PermissionGroup>Guns</PermissionGroup>
      <LeaderPermissionGroup>Guns Leader</LeaderPermissionGroup>
    </PrivateJobs>
  </PrivateJobs>
</RocketJobsConfiguration>

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="list_usage" Value="/jobs &lt;private | public&gt; &lt;page&gt;" />
  <Translation Id="join_apply_usage" Value="/jjob &lt;job name&gt;" />
  <Translation Id="accept_usage" Value="/ajob &lt;player name&gt;" />
  <Translation Id="kick_usage" Value="/kjob &lt;player name&gt;" />
  <Translation Id="admin_usage" Value="/joba &lt;add | remove | clear&gt; &lt;job name&gt; &lt;player name&gt;" />
  <Translation Id="format_error" Value="Unable to convert {0} to a number." />
  <Translation Id="overflow_error" Value="{0} is too big of a number." />
  <Translation Id="next_page_notification" Value="Next page: &quot;/Jobs {0} {1}&quot;." />
  <Translation Id="pub_job_notification" Value="{0}" />
  <Translation Id="priv_job_notification" Value="{0}" />
  <Translation Id="end_of_list" Value="You have reached the end of the {0} jobs." />
  <Translation Id="unexistant_page" Value="That page does not exist." />
  <Translation Id="error_already_in_a_job" Value="You already are in a job!" />
  <Translation Id="error_already_in_a_job_admin" Value="You cannot make a player have 2 jobs!" />
  <Translation Id="error_leader_of_a_job" Value="You are the leader of a job, and may not join other jobs!" />
  <Translation Id="error_leader_of_a_job_admin" Value="That player is the leader of a job and may not join other jobs." />
  <Translation Id="error_already_applying" Value="You are still applying to another job!" />
  <Translation Id="error_leader_offline" Value="Unable to send request to join {0}, no leader is online." />
  <Translation Id="error_job_not_found" Value="Unable to find a job known as {0}" />
  <Translation Id="error_not_in_a_job" Value="You have not yet joined a job!" />
  <Translation Id="error_player_not_applying" Value="That player is not applying to your job." />
  <Translation Id="error_invalid_job_in_storage" Value="Stored job that player was applying to does not exist anymore." />
  <Translation Id="error_not_leader_of_job" Value="You are not the leader of {0}. You may not accept that request." />
  <Translation Id="error_player_not_in_job" Value="Unable to remove player from the job {0}." />
  <Translation Id="error_contact_admin" Value="An error has occured, please contact an admin about this." />
  <Translation Id="notification_quiet_joined_job" Value="You have joined the job {0}." />
  <Translation Id="notification_quiet_joined_job_admin" Value="{0} has joined the job {1}." />
  <Translation Id="notification_global_joined_job" Value="{0} has joined the job {1}." />
  <Translation Id="notification_player_applying" Value="{0} wants to join your job." />
  <Translation Id="notification_applied_to_job" Value="You have sent a request to join the job {0}." />
  <Translation Id="notification_left_job" Value="You left the job {0}." />
  <Translation Id="notification_accepted_application" Value="You have accepted the application of {0}." />
  <Translation Id="notification_kicked" Value="You have kicked {0} from the job(s) you are a leader of." />
</Translations>

Commands and permissions


/acceptjob <player name>

Permissions: acceptjob

Accepts a join request to your group.


/jobadmin <add | remove | clear> <job name> <player name>

Permissions: jobadmin

Administers jobs for players. Overrides most of the things.


/kickjob <player name>

Permissions: kickjob

Kicks a player from your job.


/leavejob

Permissions: leavejob

Leaves the job you are currently in.


/joinjob <job name>

Permissions: joinjob

Joins a public job or applies to a private job.


/jobs <private | public> <page number>

Permissions: jobs

Lists the available jobs.


Git changelog


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