artfcl-intlgnce / XXMC

Minecraft Server
0 stars 3 forks source link

Create Way to See Cops On Duty #127

Open artfcl-intlgnce opened 7 years ago

artfcl-intlgnce commented 7 years ago

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 commented 7 years ago

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:

DEA: as im saying i dont know how to code, its just my logic on how we can do this,
artfcl-intlgnce commented 7 years ago

@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:

artfcl-intlgnce commented 7 years ago

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 commented 7 years ago

@Scarsz any update on this one?