mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-24 21:46:16 +00:00
move src path and modify config file...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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 com.bekvon.bukkit.residence.protection.CuboidArea;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
public class ResidenceCreationEvent extends CancellableResidencePlayerEvent {
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
protected String resname;
|
||||
CuboidArea area;
|
||||
|
||||
public ResidenceCreationEvent(Player player, String newname, ClaimedResidence resref, CuboidArea resarea)
|
||||
{
|
||||
super("RESIDENCE_CREATE",resref,player);
|
||||
resname = newname;
|
||||
area = resarea;
|
||||
}
|
||||
|
||||
public String getResidenceName()
|
||||
{
|
||||
return resname;
|
||||
}
|
||||
|
||||
public void setResidenceName(String name)
|
||||
{
|
||||
resname = name;
|
||||
}
|
||||
|
||||
public CuboidArea getPhysicalArea()
|
||||
{
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setPhysicalArea(CuboidArea newarea)
|
||||
{
|
||||
area = newarea;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user