mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 23:13:48 +01:00
a8466e5e2f
canceled, set it to 0 and let it to do its thing. Optimize for boost permission check on each action. Calculate only every one minute if needed. Try to create points table every time, to avoid missing table.
34 lines
607 B
Java
34 lines
607 B
Java
package com.gamingmesh.jobs.container;
|
|
|
|
public class BoostCounter {
|
|
BoostType type;
|
|
double boost;
|
|
Long calculatedon;
|
|
|
|
public BoostCounter(BoostType type, double boost, Long calculatedon) {
|
|
this.type = type;
|
|
this.boost = boost;
|
|
this.calculatedon = calculatedon;
|
|
}
|
|
|
|
public BoostType getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public long getTime() {
|
|
return this.calculatedon;
|
|
}
|
|
|
|
public double getBoost() {
|
|
return this.boost;
|
|
}
|
|
|
|
public void setTime(long time) {
|
|
this.calculatedon = time;
|
|
}
|
|
|
|
public void setBoost(double boost) {
|
|
this.boost = boost;
|
|
}
|
|
}
|