mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-25 21:56:06 +00:00
move src path and modify config file...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.bekvon.bukkit.residence.event;
|
||||
|
||||
import com.bekvon.bukkit.residence.protection.ClaimedResidence;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
public class ResidenceChatEvent extends CancellableResidencePlayerEvent {
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
protected String message;
|
||||
ChatColor color;
|
||||
|
||||
public ResidenceChatEvent(ClaimedResidence resref, Player player, String message, ChatColor color) {
|
||||
super("RESIDENCE_CHAT_EVENT", resref, player);
|
||||
this.message = message;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getChatMessage()
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setChatMessage(String newmessage)
|
||||
{
|
||||
message = newmessage;
|
||||
}
|
||||
|
||||
public ChatColor getColor()
|
||||
{
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(ChatColor c)
|
||||
{
|
||||
color = c;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user