Skip to content

Commit a64af72

Browse files
authored
Create README.md
1 parent 9b46660 commit a64af72

1 file changed

Lines changed: 106 additions & 0 deletions

File tree

README.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# PaycheckPlugin
2+
An unturned rocket plugin that adds the ability to give players different amounts of experience every X amount of seconds. It also features zones which apply multipliers to the experience, these can be defined globally or on a per paycheck basis.
3+
4+
---
5+
6+
### Commands
7+
8+
**Vector Note:** If a command takes a vector, it will round the result and for finding purposes, it will try to find the closest vector that's rounded form is an exact match. Any normal, square, angled or pointy brackets don't really matter, neither does whitespace (if surrounded with quotes).
9+
**Paycheck Name Note:** Paycheck names are case insensitive. A partial name is also acceptable. It will always return the match where the search string makes up the highest percentage of the paycheck name (for example: searching for paycheck `a` in a list of `apple,a124,paycheckname` will always return `a124`.
10+
**Node Name Note:** THe name can be a partial match, but it is case sensitive.
11+
12+
**Name:** `createpaycheck`
13+
**Usage:** `[name] [experience] <paychecktocopyzonesfrom>`
14+
**Alias:** `cpay`
15+
**Permission:** `paychecks.commands.manage`
16+
**Description:** This command allows you to create a paycheck. You can specify a paycheck to copy zones from to make your life easier.
17+
18+
**Name:** `createpaycheckzone`
19+
**Usage:** `<paycheck> <node | x,y,z> [radius] [multiplier]`
20+
**Alias:** `cpayz`
21+
**Permission:** `paychecks.commands.manage`
22+
**Description:** This command creates a zone. There are multiple ways to use this command. It has to have the radius and multiplier as the last two arguments. The easiest way to use this is to simply provide the radius and multiplier, in which case, the zone will be created at the caller's location as a global zone. The first argument can either be a paycheck to add the zone to, in which case the location will be the caller's position, or it can be a vector or (optionally partial) node name, in this case the zone is global. Lastly, if all parameters are provided, the zone will be for a specific paycheck at the provided location.
23+
24+
**Name:** `listpaychecks`
25+
**Alias:** `lpay`
26+
**Permission:** `paychecks.commands.view`
27+
**Description:** Lists all paychecks and the amount of XP they give.
28+
29+
**Name:** `listpaycheckzones`
30+
**Usage:** `<paycheck>`
31+
**Alias:** `lpayz`
32+
**Permission:** `paychecks.commands.view`
33+
**Description:** Lists all paycheck zones. If a paycheck name is not provided, it will list all global zones.
34+
35+
**Name:** `deletepaycheck`
36+
**Usage:** `[name]`
37+
**Alias:** `dpay`
38+
**Permission:** `paychecks.commands.manage`
39+
**Description:** Deletes a paycheck with the provided name.
40+
41+
**Name:** `deletepaycheckzone`
42+
**Usage:** `<paycheck> [index | node | (x,y,z)]`
43+
**Alias:** `dpayz`
44+
**Permission:** `paychecks.commands.manage`
45+
**Description:** Deletes a paycheck zone. If the paycheck name is not provided, it will delete from the global zones. The zone can be selected by either its index from `/listpaycheckzones`, the zone's node name or its position.
46+
47+
---
48+
49+
### Configuration
50+
51+
#### Settings
52+
`Interval` - How often the paychecks are distributed. Do not set this too low in order to avoid any potential lag.
53+
`DisplayNotification` - Whether a message should be sent to the player when they get or fail to get their paycheck.
54+
`AllowMultipleMultipliers` - Whether multipliers should be multiplied together if a player is in multiple zones at once. If false, only the closest multiplier will be used.
55+
`AllowPaychecksWhenDead` - Whether a player can receive paychecks while dead. It is a good idea to keep this as false for AFK protection.
56+
`AllowPaychecksInSafezone` - Whether a player can receive paychecks while in a safezone. It is a good idea to keep this as false for AFK protection.
57+
`AllowMultiplePaychecks` - Whether a player can receive multiple paychecks. If true, they will be added together, if false, only the player's highest paycheck will be given out.
58+
`Paychecks` - List of paychecks.
59+
`PaycheckZones` - List of global zones, these are applied to all paychecks.
60+
61+
#### Paychecks
62+
63+
Paychecks consist of 3 components.
64+
65+
`Name` - The name of the paycheck. The permission the player needs to get paid is based on this, it is `paycheck.paycheckname`.
66+
`Experience` - The amount of experience the paycheck gives out.
67+
`PaycheckZones` - List of zones specific to this paycheck. Anyone with a different paycheck will not be affected by these zones.
68+
69+
#### Paycheck Zones
70+
71+
`Node` - The name of the node the zone is located at. This can be a partial name and is case sensitive. This can match more than one node on the map (e.g. `HQ` can match `Axis HQ` and `Allies HQ`) you use a `Point`, delete this line.
72+
`Point` - The coordinates of where the zone is located. If you use node, set this to `<Point xsi:nil="true" />`. If you use both, only this will be used.
73+
`Radius` - The distance this zone extends out to from the Node or Point.
74+
`Multiplier` - The multiplier that is applied to the paychecks of anyone within the zone.
75+
76+
---
77+
78+
### Localization
79+
80+
**Note:** Anything not prefixed with `command_` only gets shown if `DisplayNotification` is true.
81+
82+
`paycheck_zero_multiplier` - String shown when the player has a paycheck, but it is made zero by the current multipliers.
83+
`paycheck_given` - String shown when a player receives their paycheck. {0} is the amount of experience gained.
84+
`paycheck_notgiven` - String shown when a player could not receive their paycheck. This is usually shown due to a prevented overflow. {0} is the XP not given.
85+
`paycheck_dead` - Shown when dead players cannot receive paychecks and the player is dead.
86+
`paycheck_safezone` - Shown when players in safezones cannot receive paychecks and the player is in one.
87+
`command_list_paychecks` - String followed by a list of paychecks which are represented as {0}.
88+
`command_no_paychecks` - String shown when there are no paychecks.
89+
`command_default_no_zones` - String shown when there are no global zones.
90+
`command_paycheck_no_zones` - String shown when there are no zones for paycheck {0}.
91+
`command_list_default_zones` - String followed by a list of global zones which are represented as {0}.
92+
`command_list_paycheck_zones` - String followed by a list of a paycheck's zones which are represented as {1}. The name of the paycheck is {0}.
93+
`command_paycheck_deleted` - String shown when a paycheck is deleted, {0} is the name of the paycheck.
94+
`command_delete_zone_no_parse` - String shown when a zone could not be found when attempting to delete it.
95+
`command_invalid_out_of_bounds` - String shown when the index is out of bounds. {0} is the input index, {1} and {2} are the inclusive min and max.
96+
`command_removed_zone_default` - String shown when a global zone is removed. {0} is the zone location.
97+
`command_removed_zone_paycheck` - String shown when a paycheck zone is removed. {1} is the zone location and {0} is the paycheck name.
98+
`command_no_parse_experience` - String shown when the experience for create paycheck could not be parsed.
99+
`command_paycheck_created` - String shown when a paycheck is created. {0} is the paycheck name, {1} is the experience number.
100+
`command_no_console` - String shown when a command that can be used in the console is called in a way that the console can't call it (in this case, the command needs the caller's location if called in this way).
101+
`command_no_parse_multiplier` - String shown when a paycheck zone's multiplier parameter could not be parsed as a float. {0} is the input.
102+
`command_no_parse_radius` - String shown when a paycheck zone's radius parameter could not be parsed as a float. {0} is the input.
103+
`command_no_parse_location` - String shown when a paycheck's location could not be parsed as coordinates or a node. {0} is the input.
104+
`command_created_zone_default` - String shown when a global zone is created. {0} is the location, {1} is the radius and {2} is the multiplier.
105+
`command_created_zone_paycheck` - String shown when a paycheck zone is created. {0} is the paycheck name, {1} is the location, {2} is the radius and {3} is the multiplier.
106+
`command_no_parse_paycheck_or_location` - String shown when a parameter could not be parsed as either a paycheck, node or coordinates. {0} is the input.

0 commit comments

Comments
 (0)