-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/main/java/to/us/mlgfort/communicationconnector/IncomingChatEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package to.us.mlgfort.communicationconnector; | ||
|
||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
/** | ||
* Created on 12/29/2017. | ||
* | ||
* Chat incoming from an app to MC server | ||
* | ||
* @author RoboMWM | ||
*/ | ||
public class IncomingChatEvent extends Event | ||
{ | ||
// Custom Event Requirements | ||
private static final HandlerList handlers = new HandlerList(); | ||
public static HandlerList getHandlerList() { | ||
return handlers; | ||
} | ||
@Override | ||
public HandlerList getHandlers() { | ||
return handlers; | ||
} | ||
|
||
private String name; | ||
private String message; | ||
|
||
public IncomingChatEvent(String name, String message) | ||
{ | ||
this.name = name; | ||
this.message = message; | ||
} | ||
|
||
public String getMessage() | ||
{ | ||
return message; | ||
} | ||
|
||
public String getName() | ||
{ | ||
return name; | ||
} | ||
} |