1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

Correct Import for SuperAbilityType

This commit is contained in:
Josiah Jones 2019-03-07 13:11:53 -06:00 committed by GitHub
parent 9b2945df50
commit 2df210d4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,13 +8,13 @@ import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import com.gamingmesh.jobs.Jobs; import com.gamingmesh.jobs.Jobs;
import com.gmail.nossr50.datatypes.skills; import com.gmail.nossr50.datatypes.skills.SuperAbilityType;
public class McMMOManager { public class McMMOManager {
public boolean mcMMOPresent = false; public boolean mcMMOPresent = false;
public boolean mcMMOOverHaul = false; public boolean mcMMOOverHaul = false;
private HashMap<UUID, HashMap<String, Long>> map = new HashMap<>(); private HashMap<UUID, HashMap<String, Long>> map = new HashMap<>();
@ -48,7 +48,7 @@ public class McMMOManager {
return -(1 - Jobs.getGCManager().superBreakerMultiplier); return -(1 - Jobs.getGCManager().superBreakerMultiplier);
InfoMap.remove(SuperAbilityType.SUPER_BREAKER); InfoMap.remove(SuperAbilityType.SUPER_BREAKER);
} }
} else { } else { //Don't report errors if using pre-overhaul mcmmo
Long t = InfoMap.get(AbilityType.TREE_FELLER); Long t = InfoMap.get(AbilityType.TREE_FELLER);
if (t != null) { if (t != null) {
if (t < System.currentTimeMillis()) if (t < System.currentTimeMillis())