Duty
Allow your players to go on duty !
Features
- Players can go on duty at their request
- All the duties can be fully configured depending on your needs
- Optional feature to keep duty on leave
- Optional feature to force player to relog so their prefix and suffix permissions apply
- All messages & translations support Rich Text
Configuration Explained
- Permission
- Its the permission the player must have in order to enter duty mode
- GroupId
- Its the group that will assigned to the player when going on duty mode
- StartMessage
- Optional property to send a message when the player goes on duty
- StopMessage
- Optional property to send a message when the player stops duty
- KeepDutyOnLeave
- If the duty mode should be keep when the player leaves the server
- ForceRelog
- If the player will be foreced to join and leave the server for the duty to apply. The player will be automatically kicked from the server and will automatically join again
- DisplayStartMessageOnRelog
- If the start message should be sent when joining again to the server. Ignore if no start message is set.
Configuration
<?xml version="1.0" encoding="utf-8"?>
<DutyPluginConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Duties>
<DutySettings>
<Permission>duty.moderator</Permission>
<GroupId>moderator</GroupId>
<StartMessage>[color=cyan]{0} is now on moderator mode[/color]</StartMessage>
<StopMessage>[color=yellow]{0} is no loger on moderator mode[/color]</StopMessage>
<KeepDutyOnLeave>true</KeepDutyOnLeave>
<ForceRelog>true</ForceRelog>
<DisplayStartMessageOnRelog>true</DisplayStartMessageOnRelog>
</DutySettings>
<DutySettings>
<Permission>duty.police</Permission>
<GroupId>police</GroupId>
<StartMessage>{0} is not on service</StartMessage>
<StopMessage>{0} is no longer on service</StopMessage>
<KeepDutyOnLeave>false</KeepDutyOnLeave>
<ForceRelog>false</ForceRelog>
<DisplayStartMessageOnRelog>false</DisplayStartMessageOnRelog>
</DutySettings>
<DutySettings>
<Permission>duty.medic</Permission>
<GroupId>medic</GroupId>
<KeepDutyOnLeave>false</KeepDutyOnLeave>
<ForceRelog>false</ForceRelog>
<DisplayStartMessageOnRelog>false</DisplayStartMessageOnRelog>
</DutySettings>
</Duties>
</DutyPluginConfiguration>
Translatation
<?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="NoDuty" Value="You don't have access to a duty" />
<Translation Id="DutyNotFound" Value="Duty called {0} was not found" />
<Translation Id="NoPermission" Value="You are not allowed to access {0} duty" />
<Translation Id="DutyStart" Value="Successfully started duty" />
<Translation Id="DutyStop" Value="Successfully stopped duty" />
</Translations>