2015-02-23 06:29:45 +01:00
|
|
|
package com.intellectualcrafters.plot.util;
|
|
|
|
|
2015-04-09 07:41:14 +02:00
|
|
|
import com.intellectualcrafters.plot.PlotSquared;
|
2015-02-23 06:29:45 +01:00
|
|
|
import com.intellectualcrafters.plot.flag.Flag;
|
2015-07-03 13:21:21 +02:00
|
|
|
import com.intellectualcrafters.plot.object.*;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.UUID;
|
2015-02-23 06:29:45 +01:00
|
|
|
|
|
|
|
public abstract class EventUtil {
|
|
|
|
|
|
|
|
public static EventUtil manager = null;
|
|
|
|
|
2015-04-09 07:41:14 +02:00
|
|
|
public static void unregisterPlayer(PlotPlayer player) {
|
|
|
|
String name = player.getName();
|
|
|
|
if (SetupUtils.setupMap.containsKey(name)) {
|
|
|
|
SetupUtils.setupMap.remove(name);
|
|
|
|
}
|
|
|
|
CmdConfirm.removePending(name);
|
2015-07-03 13:21:21 +02:00
|
|
|
PlotSquared.getInstance().IMP.unregister(player);
|
2015-04-09 07:41:14 +02:00
|
|
|
}
|
|
|
|
|
2015-02-23 06:29:45 +01:00
|
|
|
public abstract boolean callClaim(final PlotPlayer player, final Plot plot, final boolean auto);
|
|
|
|
|
|
|
|
public abstract boolean callTeleport(final PlotPlayer player, Location from, final Plot plot);
|
|
|
|
|
|
|
|
public abstract boolean callClear(final String world, final PlotId id);
|
|
|
|
|
|
|
|
public abstract void callDelete(final String world, final PlotId id);
|
|
|
|
|
|
|
|
public abstract boolean callFlagAdd(final Flag flag, final Plot plot);
|
|
|
|
|
|
|
|
public abstract boolean callFlagRemove(final Flag flag, final Plot plot);
|
|
|
|
|
2015-06-23 23:44:44 +02:00
|
|
|
public abstract boolean callFlagRemove(final Flag flag, final PlotCluster cluster);
|
|
|
|
|
2015-02-23 06:29:45 +01:00
|
|
|
public abstract boolean callMerge(final String world, final Plot plot, final ArrayList<PlotId> plots);
|
|
|
|
|
|
|
|
public abstract boolean callUnlink(final String world, final ArrayList<PlotId> plots);
|
|
|
|
|
|
|
|
public abstract void callEntry(final PlotPlayer player, final Plot plot);
|
|
|
|
|
|
|
|
public abstract void callLeave(final PlotPlayer player, final Plot plot);
|
|
|
|
|
|
|
|
public abstract void callDenied(final PlotPlayer initiator, final Plot plot, final UUID player, final boolean added);
|
|
|
|
|
|
|
|
public abstract void callTrusted(final PlotPlayer initiator, final Plot plot, final UUID player, final boolean added);
|
2015-05-14 14:55:57 +02:00
|
|
|
|
|
|
|
public abstract void callMember(final PlotPlayer initiator, final Plot plot, final UUID player, final boolean added);
|
2015-02-23 06:29:45 +01:00
|
|
|
}
|