1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-18 05:11:32 +01:00

Clone map to avoid issues

This commit is contained in:
Zrips 2017-02-04 18:30:13 +02:00
parent 5612becd6f
commit e9187ad9fa
4 changed files with 48 additions and 44 deletions

View File

@ -9,5 +9,6 @@
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/MythicMobs-2.1.8.jar"/>
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Residence/lib/iConomy7.0.6.jar"/>
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Residence/lib/worldedit-bukkit-6.1.1-SNAPSHOT-dist.jar"/>
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/craftconomy3-3.3.1-20160221.070622-13.jar"/>
<classpathentry kind="output" path=""/>
</classpath>

View File

@ -472,7 +472,9 @@ public class Jobs extends JavaPlugin {
int y = 0;
int total = Jobs.getPlayerManager().getMapSize();
long time = System.currentTimeMillis();
Iterator<Entry<UUID, PlayerInfo>> it = Jobs.getPlayerManager().getPlayersInfoUUIDMap().entrySet().iterator();
// Cloning to avoid issues
HashMap<UUID, PlayerInfo> temp = new HashMap<UUID, PlayerInfo>(Jobs.getPlayerManager().getPlayersInfoUUIDMap());
Iterator<Entry<UUID, PlayerInfo>> it = temp.entrySet().iterator();
while (it.hasNext()) {
Entry<UUID, PlayerInfo> one = it.next();
if (!running)

View File

@ -8,3 +8,4 @@
/IConomy6Adapter.class
/IConomy7Adapter.class
/IConomyAdapter.class
/CraftConomy3Adapter.class