mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	- Old database will break yet again (yay!) (Once we get more people using the plugin I'll have it add the missing columns)
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) IntellectualCrafters - 2014.
 | 
						|
 * You are not allowed to distribute and/or monetize any of our intellectual property.
 | 
						|
 * IntellectualCrafters is not affiliated with Mojang AB. Minecraft is a trademark of Mojang AB.
 | 
						|
 *
 | 
						|
 * >> File = PlayerClaimPlotEvent.java
 | 
						|
 * >> Generated by: Citymonstret at 2014-08-09 15:21
 | 
						|
 */
 | 
						|
 | 
						|
package com.intellectualcrafters.plot.events;
 | 
						|
 | 
						|
import com.intellectualcrafters.plot.Flag;
 | 
						|
import com.intellectualcrafters.plot.Plot;
 | 
						|
 | 
						|
import org.bukkit.entity.Player;
 | 
						|
import org.bukkit.event.Cancellable;
 | 
						|
import org.bukkit.event.Event;
 | 
						|
import org.bukkit.event.HandlerList;
 | 
						|
 | 
						|
/**
 | 
						|
 * Created by Citymonstret on 2014-08-09.
 | 
						|
 */
 | 
						|
public class PlotFlagAddEvent extends Event implements Cancellable{
 | 
						|
    private static HandlerList handlers = new HandlerList();
 | 
						|
    private boolean cancelled;
 | 
						|
 | 
						|
    private Plot plot;
 | 
						|
    private Flag flag;
 | 
						|
 | 
						|
    public PlotFlagAddEvent(Flag flag, Plot plot) {
 | 
						|
        this.plot = plot;
 | 
						|
        this.flag = flag;
 | 
						|
    }
 | 
						|
    
 | 
						|
    public Plot getPlot() {
 | 
						|
        return this.plot;
 | 
						|
    }
 | 
						|
    
 | 
						|
    public Flag getFlag() {
 | 
						|
        return this.flag;
 | 
						|
    }
 | 
						|
 | 
						|
    public static HandlerList getHandlerList() {
 | 
						|
        return handlers;
 | 
						|
    }
 | 
						|
 | 
						|
    public HandlerList getHandlers() {
 | 
						|
        return handlers;
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public boolean isCancelled() {
 | 
						|
        return this.cancelled;
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public void setCancelled(boolean b) {
 | 
						|
        this.cancelled = b;
 | 
						|
    }
 | 
						|
}
 |