Skip to content

Commit

Permalink
fix meta regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 22, 2019
1 parent b01a4b9 commit 49cf135
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 0 deletions.
Expand Up @@ -24,14 +24,20 @@ public class HeroesEvents implements Listener {
// <--[event]
// @Events
// hero changes class (to <class>)
//
// @Regex ^on hero changes class( to [^\s]+)?$
//
// @Triggers when a Hero changes classes.
//
// @Context
// <context.class> returns the class that the Hero is changing to.
// <context.cost> returns the cost of changing the class.
// <context.from> returns the class that the Hero is changing from.
// <context.hero> returns the Hero changing classes.
//
// @Determine
// "CANCELLED" to stop the hero from changing classes.
//
// @Plugin DepenizenBukkit, Heroes
// -->
@EventHandler
Expand Down Expand Up @@ -70,14 +76,20 @@ else if (hero.isPlayer()) {
// <--[event]
// @Events
// hero changes experience
//
// @Regex ^on hero changes experience$
//
// @Triggers when a Hero changes the experience.
//
// @Context
// <context.amount> returns the amount the Hero's experience is changing.
// <context.class> returns the class that the Hero is changing experience in.
// <context.hero> returns the Hero that is changing experience.
// <context.reason> returns the reason the Hero is changing experience.
//
// @Determine
// "CANCELLED" to stop the hero from gaining experience.
//
// @Plugin DepenizenBukkit, Heroes
// -->
@EventHandler
Expand Down Expand Up @@ -114,14 +126,20 @@ else if (hero.isPlayer()) {
// <--[event]
// @Events
// hero changes level (to <level>)
//
// @Regex ^on hero changes levels( to [^\s]+)?$
//
// @Triggers when a Hero changes the level.
//
// @Context
// <context.class> returns the class that the Hero is changing levels in.
// <context.from> returns the level that the Hero is changing from.
// <context.hero> returns the Hero that is changing levels.
// <context.level> returns the level the Hero is changing to.
//
// @Determine
// None
//
// @Plugin DepenizenBukkit, Heroes
// -->
@EventHandler
Expand Down
Expand Up @@ -19,11 +19,16 @@ public class VotifierEvents implements Listener {
// <--[event]
// @Events
// votifier vote
//
// @Regex ^on votifier vote$
//
// @Triggers when a Votifier vote is made.
//
// @Context
// <context.time> returns the time the vote was sent.
// <context.service> returns what service was used to send the vote.
// <context.username> returns the username input with the vote.
//
// @Plugin DepenizenBukkit, Votifier
// -->
@EventHandler
Expand Down
Expand Up @@ -10,6 +10,8 @@ public class BungeeRegisteredScriptEvent extends BukkitScriptEvent {
// @Events
// bungee registered
//
// @Regex ^on bungee registered$
//
// @Triggers when the socket client successfully registers with the BungeeCord socket.
//
// @Cancellable false
Expand Down
Expand Up @@ -12,6 +12,8 @@ public class BungeeServerConnectScriptEvent extends BukkitScriptEvent {
// @Events
// bungee server connects
//
// @Regex ^on bungee server connects$
//
// @Triggers when another server connects to the BungeeCord socket.
//
// @Cancellable false
Expand Down
Expand Up @@ -12,6 +12,8 @@ public class BungeeServerDisconnectScriptEvent extends BukkitScriptEvent {
// @Events
// bungee server disconnects
//
// @Regex ^on bungee server disconnects$
//
// @Triggers when another server disconnects from the BungeeCord socket.
//
// @Cancellable false
Expand Down
Expand Up @@ -16,6 +16,8 @@ public class PlayerDisconnectScriptEvent extends BungeeScriptEvent {
// @Events
// bungee player leaves network
//
// @Regex ^on bungee player leaves network$
//
// @Triggers when a player leaves the BungeeCord network.
//
// @Cancellable false
Expand Down
Expand Up @@ -16,6 +16,8 @@ public class PostLoginScriptEvent extends BungeeScriptEvent {
// @Events
// bungee player joins network
//
// @Regex ^on bungee player joins network$
//
// @Triggers when a player is connected to the BungeeCord network and is ready to join a server.
//
// @Cancellable false
Expand Down
Expand Up @@ -17,6 +17,8 @@ public class ProxyPingScriptEvent extends BungeeScriptEvent {
// @Events
// proxy server list ping
//
// @Regex ^on proxy server list ping$
//
// @Triggers when the BungeeCord proxy is pinged from a client's server list.
//
// @Cancellable false
Expand Down
Expand Up @@ -10,6 +10,8 @@ public class ReconnectFailScriptEvent extends BukkitScriptEvent {
// @Events
// bungee fails reconnect
//
// @Regex ^on bungee fails reconnect$
//
// @Triggers when the socket client fails all of its reconnect attempts.
//
// @Cancellable false
Expand Down
Expand Up @@ -18,6 +18,8 @@ public class ServerSwitchScriptEvent extends BungeeScriptEvent {
// bungee player switches to server
// bungee player switches to <server>
//
// @Regex ^on bungee player switches to [^\s]+$
//
// @Triggers when a player switches to a different server on the BungeeCord network.
//
// @Cancellable false
Expand Down
Expand Up @@ -68,11 +68,17 @@ public void onTransaction(PlayerTransaction playerTransaction, TransactionRespon
// player buys item
// player buys <item>
// player buys <material>
//
// @Regex ^on player buys [^\s]+$
//
// @Triggers when a player buys an item from a HyperConomy shop.
//
// @Context
// <context.item> returns the dItem the player bought.
//
// @Determine
// NONE
//
// @Plugin DepenizenBukkit, HyperConomy
// -->
case BUY:
Expand All @@ -87,11 +93,17 @@ public void onTransaction(PlayerTransaction playerTransaction, TransactionRespon
// player sells item
// player sells <item>
// player sells <material>
//
// @Regex ^on player sells [^\s]+$
//
// @Triggers when a player sells an item to a HyperConomy shop.
//
// @Context
// <context.item> returns the dItem the player sold.
//
// @Determine
// NONE
//
// @Plugin DepenizenBukkit, HyperConomy
// -->
case SELL:
Expand Down

0 comments on commit 49cf135

Please sign in to comment.