Skip to content

Commit

Permalink
remove unneeded iterating over offlineplayers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeebiss committed Aug 6, 2013
1 parent 31645a9 commit c910784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/Denizen.java
Expand Up @@ -264,7 +264,7 @@ public void onDisable() {

for (OfflinePlayer player : this.getServer().getOfflinePlayers())
try {
getListenerRegistry().deconstructPlayer(dPlayer.valueOf(player.getName())); } catch (Exception e) {
getListenerRegistry().deconstructPlayer(dPlayer.mirrorBukkitPlayer(player)); } catch (Exception e) {
if (player == null) dB.echoDebug("Tell aufdemrand ASAP about this error! ERR: OPN");
else dB.echoError("'" + player.getName() + "' is having trouble deconstructing! " +
"You might have a corrupt player file!");
Expand Down

0 comments on commit c910784

Please sign in to comment.