Skip to content

Commit

Permalink
Fix issue when loading plugin while server is up (e.g. using PlugMan)…
Browse files Browse the repository at this point in the history
…. Release 1.0.2
  • Loading branch information
chuushi committed Aug 11, 2018
1 parent 54c03e4 commit d4d7cfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'com.simonorj.mc.phantomsmp'
version '1.0.1'
version '1.0.2'

sourceCompatibility = 1.8

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/simonorj/mc/phantomsmp/PhantomSMP.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public void onEnable() {
this.phantomPlayerMap = new HashMap<>();
this.removeTargetingRested = getConfig().getBoolean("remove-targeting-rested", true);

for (Player p : getServer().getOnlinePlayers()) {
this.playerPhantomMap.put(p, new LinkedHashSet<>());
}

// Initiate map
for (World w : getServer().getWorlds()) {
if (w.getEnvironment() != World.Environment.NORMAL)
Expand Down

0 comments on commit d4d7cfe

Please sign in to comment.