summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-09-10 17:46:01 +0100
committerElgarL <ElgarL@palmergames.com>2012-09-10 17:46:01 +0100
commit71179e3dfd4ed8668fd4096d15326613c4a05750 (patch)
tree20f230b6d0069b13c78b0658b8da2689351ae682 /EssentialsGroupManager
parent96ab1b4533b62464b8325373e677209290bced3e (diff)
downloadEssentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar
Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar.gz
Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar.lz
Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.tar.xz
Essentials-71179e3dfd4ed8668fd4096d15326613c4a05750.zip
Synchronize the world data holder.
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
index 2a6463fe3..123070759 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java
@@ -403,8 +403,10 @@ public class WorldsHolder {
if (worldsData.containsKey(worldNameLowered)) {
OverloadedWorldHolder data = worldsData.get(worldNameLowered);
- data.updateDataSource();
- return data;
+ synchronized (data) {
+ data.updateDataSource();
+ return data;
+ }
}
return null;