Major code reformatting

This commit is contained in:
MattBDev
2016-03-22 21:41:37 -04:00
parent e18e1d4816
commit 9e2c6f2182
209 changed files with 9551 additions and 9237 deletions

View File

@ -20,28 +20,29 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
package com.plotsquared.bukkit.events;
import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotId;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotId;
/**
* Called when a plot is cleared
*
*
*/
public class PlotClearEvent extends PlotEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancelled;
public PlotClearEvent(Plot plot) {
super(plot);
}
}
private static HandlerList handlers = new HandlerList();
public static HandlerList getHandlerList() {
return handlers;
}
return handlers;
/**
* Get the PlotId
*
@ -50,7 +51,7 @@ public class PlotClearEvent extends PlotEvent implements Cancellable {
public PlotId getPlotId() {
return getPlot().getId();
}
return getPlot().getId();
/**
* Get the world name
*
@ -59,19 +60,19 @@ public class PlotClearEvent extends PlotEvent implements Cancellable {
public String getWorld() {
return getPlot().getArea().worldname;
}
return getPlot().getArea().worldname;
@Override
public HandlerList getHandlers() {
return handlers;
}
return handlers;
@Override
public boolean isCancelled() {
@Override
return this.cancelled;
}
return cancelled;
@Override
@Override
public void setCancelled(boolean b) {
this.cancelled = b;
}
}