mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
Fix small memory leak
This commit is contained in:
1 parent
f758f273be
commit
defc586ee2
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.palmergames.bukkit.TownyChat.event;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@@ -35,7 +35,7 @@ public class TownyPlayerHighestListener implements Listener {
|
||||
private CraftIRCHandler ircHander;
|
||||
private DynmapAPI dynMap;
|
||||
|
||||
private HashMap<Player, Long> SpamTime = new HashMap<Player, Long>();
|
||||
private WeakHashMap<Player, Long> SpamTime = new WeakHashMap<Player, Long>();
|
||||
|
||||
public TownyPlayerHighestListener(Chat instance, CraftIRCHandler irc, DynmapAPI dynMap) {
|
||||
this.plugin = instance;
|
||||
|
||||
Reference in new issue
Block a user