mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 05:36:45 +01:00
42 lines
997 B
Java
42 lines
997 B
Java
package com.plotsquared.bukkit.events;
|
|
|
|
import com.intellectualcrafters.plot.object.Plot;
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
|
import com.intellectualcrafters.plot.object.Rating;
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
public class PlotRateEvent extends PlotEvent {
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
private final PlotPlayer rater;
|
|
private Rating rating;
|
|
|
|
public PlotRateEvent(PlotPlayer rater, Rating rating, Plot plot) {
|
|
super(plot);
|
|
this.rater = rater;
|
|
this.rating = rating;
|
|
}
|
|
|
|
public static HandlerList getHandlerList() {
|
|
return handlers;
|
|
}
|
|
|
|
public PlotPlayer getRater() {
|
|
return this.rater;
|
|
}
|
|
|
|
public Rating getRating() {
|
|
return this.rating;
|
|
}
|
|
|
|
public void setRating(Rating rating) {
|
|
this.rating = rating;
|
|
}
|
|
|
|
@Override
|
|
public HandlerList getHandlers() {
|
|
return handlers;
|
|
}
|
|
|
|
}
|