1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 22:13:25 +01:00
Jobs/com/gamingmesh/jobs/api/JobsExpGainEvent.java

57 lines
1.2 KiB
Java
Raw Normal View History

2016-04-03 16:22:44 +02:00
package com.gamingmesh.jobs.api;
import org.bukkit.OfflinePlayer;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
2016-04-03 19:36:39 +02:00
import com.gamingmesh.jobs.container.Job;
2016-04-03 16:22:44 +02:00
public final class JobsExpGainEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private OfflinePlayer offlinePlayer;
private double exp;
2016-04-03 19:36:39 +02:00
private Job job;
2016-04-03 16:22:44 +02:00
private boolean cancelled;
2016-04-03 19:36:39 +02:00
public JobsExpGainEvent(OfflinePlayer offlinePlayer, Job job, double exp) {
2016-04-03 16:22:44 +02:00
this.offlinePlayer = offlinePlayer;
2016-04-03 19:36:39 +02:00
this.job = job;
2016-04-03 16:22:44 +02:00
this.exp = exp;
}
public OfflinePlayer getPlayer() {
return this.offlinePlayer;
}
2016-04-03 19:36:39 +02:00
public Job getJob() {
return this.job;
}
2016-04-03 16:22:44 +02:00
public double getExp() {
return this.exp;
}
public void setExp(double exp) {
this.exp = exp;
}
2016-06-25 17:56:59 +02:00
@Override
2016-04-03 16:22:44 +02:00
public boolean isCancelled() {
return cancelled;
}
2016-06-25 17:56:59 +02:00
@Override
2016-04-03 16:22:44 +02:00
public void setCancelled(boolean cancel) {
cancelled = cancel;
}
2016-06-25 17:56:59 +02:00
@Override
2016-04-03 16:22:44 +02:00
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
}