Author Topic: [Server] V0.0.1 Event Restrictions  (Read 1947 times)

Allows admins to filter what events people can & cannot use.

Commands:
(Admin Only) :  /ToggleEventRestrictions - Enables / disables the event filter.
(Admin Only) : /AddEventRestriction - Adds an event to the event filter.
  + (Admin Only) : /RestrictEvent - Same as above.
(Admin Only) : /RemoveEventRestriction - Removes an event from the event filter.
  + (Admin Only) : /DerestrictEvent - Same as above.
(Admin Only) : /ClearEventRestrictions - Clears the event filter entirely.
(Everyone) : /GetEventRestrictions - Gets a list of restricted events.

Variables:
$pref::Server::RestrictedEvents::CheckOnActivate - Whenever a player clicks on a brick, it will first check & deactivate any restricted events on said brick. (Default : 0)
$pref::Server::EnableEventRestrictions - Toggles event filter (Can be done ingame by using /toggleEventRestrictions). (Default : 0)
$pref::Server::RestrictedEvents::DisableNotice - Disables the 'Player has restricted an event' message whenever an admin uses /restrictevent, /derestrictevent, etc. (Default : 0)
$pref::Server::EventRestrictions::ShowFilterToMinigame - Allows / disallows players from querying the event filter list (via /getEventRestrictions) in a minigame. (Default : 1)


Download this add-on from Blockland Glass!
Or download this add-on from Leopard Hosting!

Credits:
Coder: Clay Hanson (ID:15144)
Beta Tester: Kott (ID:44076)
« Last Edit: July 22, 2016, 12:45:47 PM by RTBARCHIVE »

you should probably shorten the commands so it probably doesn't have to be a pain typing all that

i could be wrong and im just lazy but ye


overall this add-on is p gud

you should probably shorten the commands so it probably doesn't have to be a pain typing all that

i could be wrong and im just lazy but ye


overall this add-on is p gud
It's not like you have to type it a lot, only when set up a new server.

Good add-on!

thank you, old one didn't work at all.

New version: 0.0.1
Code: [Select]
Version 0.0.1 changelog:
  + Added more preferences (Included in OP)
  + If $pref::Server::RestrictedEvents::CheckOnActivate is set to 1, whenever a player clicks on a brick, the server will check that brick for any restricted events
Downloads:
Leopard Hosting
Blockland Glass (Outdated)