public class ReputationChangeEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
ReputationChangeEvent(User user,
int change,
java.lang.String reason) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentReputation()
Get the current reputation for the @User.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
java.lang.String |
getReason()
Get the reason the reputation was changed.
|
int |
getReputationChange()
Get the amount reputation will be changed.
|
User |
getUser()
Get the @User who just gained xp.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setReputationChange(int change)
Set amount reputation will be changed.
|
public ReputationChangeEvent(User user, int change, java.lang.String reason)
public static org.bukkit.event.HandlerList getHandlerList()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public User getUser()
public int getReputationChange()
public void setReputationChange(int change)
xp
- public int getCurrentReputation()
public java.lang.String getReason()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable