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