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
|
|
|
|
*
|
|
|
|
*/
|
2015-09-13 06:04:31 +02:00
|
|
|
public class PlotRateEvent extends PlotEvent {
|
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
private static HandlerList handlers = new HandlerList();
|
|
|
|
private final PlotPlayer rater;
|
|
|
|
private Rating rating;
|
2015-09-13 06:04:31 +02:00
|
|
|
|
|
|
|
public PlotRateEvent(final PlotPlayer rater, final Rating rating, final Plot plot) {
|
2015-09-11 12:09:22 +02:00
|
|
|
super(plot);
|
|
|
|
this.rater = rater;
|
|
|
|
this.rating = rating;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
|
|
|
public static HandlerList getHandlerList() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return handlers;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
|
|
|
public PlotPlayer getRater() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return rater;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
|
|
|
public void setRating(final Rating rating) {
|
2015-09-11 12:09:22 +02:00
|
|
|
this.rating = rating;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
|
|
|
public Rating getRating() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return rating;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
@Override
|
2015-09-13 06:04:31 +02:00
|
|
|
public HandlerList getHandlers() {
|
2015-09-11 12:09:22 +02:00
|
|
|
return handlers;
|
|
|
|
}
|
2015-09-13 06:04:31 +02:00
|
|
|
|
2015-09-11 12:09:22 +02:00
|
|
|
}
|