Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Way to See Cops On Duty #127

Open
artfcl-intlgnce opened this issue Dec 15, 2016 · 4 comments
Open

Create Way to See Cops On Duty #127

artfcl-intlgnce opened this issue Dec 15, 2016 · 4 comments

Comments

@artfcl-intlgnce
Copy link
Owner

We need something just like our staff duty plugin which shows and announces cops on duty. (just no /ask)

Currently /onduty and /offduty enable temp permissions (such as ability to frisk and place police vehicles)

@k-lj
Copy link
Collaborator

k-lj commented Dec 22, 2016

Make like a thing what /list does but we can make it so its /cops and we can make a permission when the do /onduty something like cops.list.onduty and the /cops will print the players who have that permission, and if we want to do that for specific cop groups we can do like cops.list.onduty.DEA or somthing like that and the screenprint will have somthing like
Sargent:
<cops.list.onduty.Sargent>
DEA:
<cops.list.onduty.DEA>
as im saying i dont know how to code, its just my logic on how we can do this,

@artfcl-intlgnce
Copy link
Owner Author

@Scarsz - Need a way to show current cops on duty. This is what we are currently doing using MyCommand, but there is one small piece missing which is a way for players to see what cops are on duty. I would like it to be command based, just like /staff, but if it needs a tablist color I can do that similarly.

ondutyfrisk:
command: /ondutyfrisk
type: RUN_CONSOLE
permission-required: true
permission-node: mycommand.cmd.ondutyfrisk
permission-error: "&a$player! , &2You are not a Police Officer!"
runcmd:

  • pex user $player add friskstick.frisk
  • pex user $player add essentials.jail
  • say $player is now On Duty!
  • pex user $player add simpleprefix.onduty
  • pex user $player add essentials.togglejail
  • pex user $player add essentials.kits.cop
  • pex user $player add cars.type.POLICE
    offdutyfrisk:
    permission-required: true
    permission-node: mycommand.cmd.offdutyfrisk
    permission-error: "&a$player! , &2You are not a Police Officer!"
    command: /offdutyfrisk
    type: RUN_CONSOLE
    runcmd:
  • pex user $player remove friskstick.frisk
  • pex user $player remove essentials.jail
  • say $player is now Off Duty!
  • pex user $player remove simpleprefix.onduty
  • pex user $player remove essentials.togglejail
  • pex user $player remove essentials.kits.cop
  • pex user $player remove cars.type.POLICE
    dutyuniform:
    permission-required: true
    permission-node: mycommand.cmd.dutyuniform
    permission-error: "&a$player! , &2You are not a Police Officer!"
    command: /dutyuniform
    type: RUN_COMMAND
    runcmd:
  • '/kit cop'
    cost: 0
    onduty:
    permission-required: true
    permission-node: mycommand.cmd.onduty
    permission-error: "&a$player! , &2You are not a Police Officer!"
    command: /onduty
    type: RUN_COMMAND
    runcmd:
  • '/ondutyfrisk'
  • '/dutyuniform'
    cost: 0
    offduty:
    permission-required: true
    permission-node: mycommand.cmd.offduty
    permission-error: "&a$player! , &2You are not a Police Officer!"
    command: /offduty
    type: RUN_COMMAND
    runcmd:
  • '/offdutyfrisk'
    cost: 0

@artfcl-intlgnce
Copy link
Owner Author

artfcl-intlgnce commented Jan 5, 2017

Requirements:
With perm 'narco.police', add player command of /addtodutylist.
With perm 'narco.police', add player command /removefromdutylist
With perm 'narco.player', add player command of /police , to list all online players on the duty list (in session).
On police player logout, remove player from duty list.
Configurable broadcast text with number of cops on duty (when cops on duty > 1)
i.e. 'There are 2 Cops on Duty! Check with /police'
Configurable broadcast interval in seconds

This is very similar to the Duty.jar that you previously modified @Scarsz, minus things like ask staff a question.
I am going to add these to the command sequence that triggers when cops use /onduty and /offduty

@artfcl-intlgnce
Copy link
Owner Author

@Scarsz any update on this one?

@artfcl-intlgnce artfcl-intlgnce added this to the Release v0.6 milestone Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants