1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 12:35:28 +01:00
Jobs/com/gamingmesh/jobs/api/JobsExpGainEvent.java
2016-06-25 18:56:59 +03:00

57 lines
1.2 KiB
Java

package com.gamingmesh.jobs.api;
import org.bukkit.OfflinePlayer;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.gamingmesh.jobs.container.Job;
public final class JobsExpGainEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private OfflinePlayer offlinePlayer;
private double exp;
private Job job;
private boolean cancelled;
public JobsExpGainEvent(OfflinePlayer offlinePlayer, Job job, double exp) {
this.offlinePlayer = offlinePlayer;
this.job = job;
this.exp = exp;
}
public OfflinePlayer getPlayer() {
return this.offlinePlayer;
}
public Job getJob() {
return this.job;
}
public double getExp() {
return this.exp;
}
public void setExp(double exp) {
this.exp = exp;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancel) {
cancelled = cancel;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}