eventmanager

last built a week ago
Build #7
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Game4Freak
Do you like this plugin? You can fund the maintenance of this plugin with a donation to Game4Freak.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

EventManager

EventManager is a plugin to manage ingame event which can be added by other plugins. EventManager itself has 2 small example events called “freeRandomItem” and “message” wich will give your players a random item out of a list you define or send a message in the chat.

 

For more information check out the wiki here

Current Version 0.1.2.0 (12.05.2019)

 

Configuration

EventManager

You can set the chatcolor of the notifications.

You can enable / disable random event (enabled = a random event is choosen / disabled = the events follow the priority you defined).

You can set the time (in minutes) between event.

You can add pre event notifications (time in minutes before events).

You can enable / disable if the timer for events resets on reload / restart.

You can enable a UI wich will show you a countdown to the next event (the workshop mod can be found HERE).

 

FreeRandomItem event

You can enable a pre event notification of this event.

You can set the minimum amount of players for the event (can be overwritten with the /event add command but not fall below).

 

Message event

You can set the chat color.

 

Permissions

Note: The standart /admin group has all possible permissions

eventmanager.admin   — for all commands

eventmanager.next   — for the /event next command

evetnmanager.forcenext    — for the /event forcenext command

eventmanager.reset    — for the /event reset command

eventmanager.add    — for the /event add <eventname> <eventtype> <priority> <parameters[]> command

eventmanager.list    — for the /event list command

eventmanager.remove    — for the /event remove <eventname> command

 

Commands

/event next       — will show you when the next event starts

/event frocenext       — will force the next event to start

/event reset       — will reset the time to the next event

/event add <eventname> <eventtype> <priority> <parameters[]>      — will add a event to your eventlist

/event list       — will show your eventlist

/event remove <eventname>      — will remove a event from your eventlist

 

FreeRandomItem event

Add this event to your eventlist with:

/event add <eventname> freeRandomItem <priority> <minplayers> <itemIDs[]>

Example:

/event add MyFirstEvent freeRandomItem 10 5 20 21 22 23

This will add a event called MyFirstEvent of the type freeRandomItem with the priority 10, minplayers 5 and the the itemIDs 20, 21, 22, 23.

When the event is triggered every player will get 1 random item of the itemIDs (20, 21, 22, 23).

 

Message event

Add this event to your eventlist with:

/event add <eventname> message <priority> <message>

Example:

/event add MySecondEvent message 5 This is a fancy event

This will add a event called MySecondEvent of the type message with the priority 5 and the message “This is a fancy event”.

When the event is triggered a chatmessage will be send with “This is a fancy event”.

 

Other plugin events

Snake / Curve Fever (Coming soon)

 

Planed

Nothing

 

Support for other plugins

If you want to create a plugin wich uses / supports the EventManager check the github page, the wiki and the example event.

If you want the plugin to be listed here under the other plugin events contact me.

 

Other Plugins

AdvancedZones

AdvancedBlacklists

InkognitoMode

CashBank

CarjackPermission

 

Contact

You want a custom plugin or report a bug? Feel free to contact me 🙂

Game4Freak#9591 on Discord

Game4Freak on Steam

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<EventManagerConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <freeRandomItemEventPreNotification>true</freeRandomItemEventPreNotification>
  <freeRandomItemEventMinPlayers>2</freeRandomItemEventMinPlayers>
  <messageEventColor>cyan</messageEventColor>
  <messageColor>cyan</messageColor>
  <useRandomEvents>true</useRandomEvents>
  <useUICountdown>false</useUICountdown>
  <countdownStartMin>10</countdownStartMin>
  <resetOnReload>true</resetOnReload>
  <lastEventUnixTime>1558112838</lastEventUnixTime>
  <minutesBetweenEvents>2</minutesBetweenEvents>
  <minutesNotificationBefore>
    <notification>1</notification>
    <notification>0.5</notification>
  </minutesNotificationBefore>
  <events />
  <eventTypes />
</EventManagerConfiguration>

Default english translation


<?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="notification_about-to-start_minutes" Value="[EventManager] A event is about to start in {0} minute(s)!" />
  <Translation Id="notification_about-to-start_seconds" Value="[EventManager] A event is about to start in {0} second(s)!" />
  <Translation Id="notification_start" Value="[EventManager] The event: {0} is starting!" />
  <Translation Id="next_event_minutes" Value="[EventManager] The next event starts in {0} minute(s)!" />
  <Translation Id="next_event_seconds" Value="[EventManager] The next event starts in {0} second(s)!" />
  <Translation Id="insufficient_players" Value="[EventManager] There are not enough players on the server for a event!" />
  <Translation Id="no_permission" Value="You dont have permission to do that!" />
  <Translation Id="command_invalid" Value="Invalid! Try {0} {1}" />
  <Translation Id="command_invalid_number" Value="{0} is not a number!" />
  <Translation Id="command_invalid_type" Value="The type: {0} does not exist" />
  <Translation Id="command_invalid_parameters" Value="Invaid Length! Try {0} {1} {2}" />
  <Translation Id="command_no_events" Value="[EventManager] The server has no events" />
  <Translation Id="command_forced_next" Value="[EventManager] The next event has been forced!" />
  <Translation Id="command_reset" Value="[EventManager] The time to the next event has been reset!" />
  <Translation Id="command_event_exists" Value="The event: {0} already exists!" />
  <Translation Id="command_event_not_exists" Value="The event: {0} does not exist!" />
  <Translation Id="command_add" Value="[EventManager] The event: {0} of type: {1} with priority: {2} was added!" />
  <Translation Id="command_remove" Value="[EventManager] the event: {0} was removed!" />
  <Translation Id="exampleevent_invalid_ids" Value="[{0}] There are no item ids to give away!" />
  <Translation Id="exampleevent_give_away" Value="[{0}] You got a free Item!" />
  <Translation Id="exampleevent_on_event_notification" Value="[{0}] Get yourself ready for a gift!" />
  <Translation Id="exmapleevent_insufficient_players" Value="[{0}] There are not enough players on the server for this event!" />
  <Translation Id="countdown_message" Value="Next Event: {0}" />
  <Translation Id="countdown_start" Value="Event Started!" />
</Translations>

Commands and permissions


/event <next|forcenext|reset|add|list|remove> <eventname> <eventtype> <priority> <parameters[]>

Permissions: event

Administrate your events


Git changelog


79b5bca4cb81998 2019-05-17 17:06:49

Update to version: 0.3.1.0

  • Fixed removing ui when player leaves while in countdown and the player on the server are under the minimum

1b1f6db0f1c1bf5 2019-05-17 10:25:27

Update to version 0.3.0.0

  • Added:
  • - "message" event
  • - Option to enable a UI with a countdown

168a7a1ab68ec14 2019-05-17 08:24:31

Update to version 0.2.0.0

  • Added:
  • Option to enable / disable reset event timer on plugin reload

981f79e3b68a9a3 2019-05-12 02:41:14

Update to version 0.1.2.0

  • Fixed a small mistakes with command returns

a009a9153daf6d7 2019-05-11 02:37:47

Update to version 0.1.1.1

  • Added config option for minplayers of the freeRandomItem event

5a0f6fe7744d434 2019-05-11 01:48:49

Update to 0.1.1.0

  • Fixed:
  • Bug with reversed showing the time till the next event

2a7559bbd350545 2019-05-09 19:37:41

Initial update to version 0.1.0.0

  • Added whole plugin ;)