Skip to content

Commit

Permalink
clear hashmap async
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed May 27, 2023
1 parent b18fa3b commit 835cb30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void enable() {
AnarchyExploitFixes plugin = AnarchyExploitFixes.getInstance();
plugin.getServer().getPluginManager().registerEvents(this, plugin);
// clear hashmap every 5 minutes to preserve ram
plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, withersShootingSkulls::clear, 6000L, 6000L);
plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, withersShootingSkulls::clear, 6000L, 6000L);
}

@Override
Expand Down

0 comments on commit 835cb30

Please sign in to comment.