Flight Monitor icon

Flight Monitor -----

Monitors people to ensure they have flight perms if flying



Terminology:

Buffer is the amount of time between the plugin detecting someone flying w/o the permission and when it terminates their flight. This is to allow them to land safely. If you don't care about that, set buffer to zero.

Countdown setting is when to start a second by second countdown. If you have a 10 second buffer and set countdown to 5, then it will be silent for seconds 10-6 then at 5 it will start sending the "countdown" message every second until either flight terminates or they receive permission/turn off flight themselves.

Skip CD: This allows you to skip a second during countdown. This is if you, for some reason, want a special message at a certain time. Like let's say your countdown is 5 and you set 2 in skipcd, then set a time message for 2 as "Ohhh you bout to be screwed!" you'd see this:

Ah speaking of which, to do a message at a certain time the message code is "timemessage-#" where # is the time to send it. So if I wanted the above config, and I also had buffer set to 10 and wanted to warn them as soon as the count started, I may have a config like:
Code (Text):
config:
  buffer-time: 10
  start-countdown-at: 5
  skip-countdown:
  - 2
messages:
  timemessage-10: '&cFlight will terminate in 10 seconds!'
  timemessage-2: '&bOhhh you bout to be screwed!'
  countdown: '&cFlight terminating in !# second!s ...'
Also writing that out reminded me of something else. In your time message and countdown message you can use !# to get the current time value (or use var %value%, both work). I also have a pluralization function. It uses ! to trigger, and replaces the pluralization token with the appropriate string based on the value. This is the token table:

!s = sword | swords
!es = bus | buses
!ies = penny | pennies
!oo = tooth | teeth
!an = woman | women
!us = cactus | cacti
!is = analysis | analyses
!o = potato | potatoes
!on = criteria | criterion
!lf = elf | elves

So if you wanted a string that would say either:
1 woman cut the potato elf with their sword tooth
or
5 women cut the potatoes elves with their swords teeth
you'd do:
Code (Java):
!# wom !an cut the potat !o e !lf with their sword !s t !ooth
Though that makes no sense at all as all the words are being affected by the counter value for just the women, lol, but whatever.


Commands:

/FLTMON LIST

flightmonitor.list
Lists all players who are facing flight termination

/FLTMON MSG msgcode (value)
flightmonitor.msg.get
flightmonitor.msg.set

Sets the message strings (or views if you pass no value)

/FLTMON BUFFER (value)
flightmonitor.buffer.get
flightmonitor.buffer.set

Sets the buffer time (or views if you pass no value)

/FLTMON COUNTDOWN (value)
flightmonitor.countdown.get
flightmonitor.countdown.set

Sets the countdown start time (or views if you pass no value)

/FLTMON SKIPCD (value)
flightmonitor.skipcd.get
flightmonitor.skipcd.set

Toggles if a second should be skipped during countdown (or views if you pass no value)
Resource Information
Author:
----------
Total Downloads: 146
First Release: Sep 2, 2022
Last Update: Sep 3, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings