Class: Australium::Trigger
- Defined in:
- lib/australium/events/trigger.rb
Overview
A Trigger Event is a very general Event. Triggers occur on point capture, round end, even damage and healing with plugins installed. Depending on the kind of trigger, it could involve one player, two players, or no players at all (in the case of ‘World’ triggering an event, such as a round end).
Constant Summary collapse
- LOG_REGEX =
/: "?(?<initiator>.*(World|>))"? triggered "(?<action>[^"]+)"(?: against "(?<target>.+>)")?/
Constants inherited from Event
Event::PROPERTY_REGEX, Event::TIMESTAMP_REGEX
Instance Attribute Summary collapse
-
#action ⇒ String
The name of the triggered action.
-
#initiator ⇒ Player, String
The Player who triggered the event, or the string ‘World’.
- #target ⇒ Player, NilClass
Attributes inherited from Event
Method Summary
Methods inherited from Event
Constructor Details
This class inherits a constructor from Australium::Event