mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-26 12:45:52 +01:00
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
From 5578a35a1ecf144435f1d1d802753d0726c26bf2 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Sun, 4 Dec 2016 01:19:40 -0500
|
|
Subject: [PATCH] EMC ServerShutdownEvent
|
|
|
|
---
|
|
.../customevents/ServerShutdownEvent.java | 29 +++++++++++++++++++
|
|
1 file changed, 29 insertions(+)
|
|
create mode 100644 src/main/java/com/empireminecraft/customevents/ServerShutdownEvent.java
|
|
|
|
diff --git a/src/main/java/com/empireminecraft/customevents/ServerShutdownEvent.java b/src/main/java/com/empireminecraft/customevents/ServerShutdownEvent.java
|
|
new file mode 100644
|
|
index 00000000..43f761a1
|
|
--- /dev/null
|
|
+++ b/src/main/java/com/empireminecraft/customevents/ServerShutdownEvent.java
|
|
@@ -0,0 +1,29 @@
|
|
+package com.empireminecraft.customevents;
|
|
+
|
|
+import org.bukkit.event.Event;
|
|
+import org.bukkit.event.HandlerList;
|
|
+
|
|
+public class ServerShutdownEvent extends Event {
|
|
+ private String reason;
|
|
+ public ServerShutdownEvent(String reason) {
|
|
+ this.reason = reason;
|
|
+ }
|
|
+
|
|
+ public String getReason() {
|
|
+ return reason;
|
|
+ }
|
|
+
|
|
+ public void setReason(String reason) {
|
|
+ this.reason = reason;
|
|
+ }
|
|
+
|
|
+ private static final HandlerList handlers = new HandlerList();
|
|
+
|
|
+ public HandlerList getHandlers() {
|
|
+ return handlers;
|
|
+ }
|
|
+
|
|
+ public static HandlerList getHandlerList() {
|
|
+ return handlers;
|
|
+ }
|
|
+}
|
|
--
|
|
2.25.1.windows.1
|
|
|