From 7dd56a2698ce7951a3f18ef65d0f0e5d0b1093f9 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 16 Aug 2018 18:05:50 +0200 Subject: [PATCH] Update McMMOlistener.java --- .../java/com/gamingmesh/jobs/listeners/McMMOlistener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/listeners/McMMOlistener.java b/src/main/java/com/gamingmesh/jobs/listeners/McMMOlistener.java index 02384b2a..ce6cdb6b 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/McMMOlistener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/McMMOlistener.java @@ -26,7 +26,7 @@ public class McMMOlistener implements Listener { private Jobs plugin; public boolean mcMMOPresent = false; - HashMap> map = new HashMap>(); + HashMap> map = new HashMap<>(); public McMMOlistener(Jobs plugin) { this.plugin = plugin; @@ -61,7 +61,7 @@ public class McMMOlistener implements Listener { @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public void OnAbilityOn(McMMOPlayerAbilityActivateEvent event) { - HashMap InfoMap = new HashMap(); + HashMap InfoMap = new HashMap<>(); if (map.containsKey(event.getPlayer().getName())) InfoMap = map.get(event.getPlayer().getName()); InfoMap.put(event.getAbility(), System.currentTimeMillis() + (event.getAbility().getMaxLength() * 1000));