PlotSquared/src/main/java/com/plotsquared/bukkit/events/PlotRateEvent.java

54 lines
1.1 KiB
Java
Raw Normal View History

2015-09-11 12:09:22 +02:00
package com.plotsquared.bukkit.events;
import org.bukkit.event.HandlerList;
import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.object.Rating;
/**
* Created 2015-07-13 for PlotSquaredGit
*
*/
public class PlotRateEvent extends PlotEvent
{
private static HandlerList handlers = new HandlerList();
private final PlotPlayer rater;
private Rating rating;
public PlotRateEvent(final PlotPlayer rater, final Rating rating, final Plot plot)
{
super(plot);
this.rater = rater;
this.rating = rating;
}
public static HandlerList getHandlerList()
{
return handlers;
}
public PlotPlayer getRater()
{
return rater;
}
public void setRating(final Rating rating)
{
this.rating = rating;
}
public Rating getRating()
{
return rating;
}
@Override
public HandlerList getHandlers()
{
return handlers;
}
}