Clean up player references even on exception.

This commit is contained in:
Olof Larsson 2014-10-22 07:53:56 +02:00
parent b083182291
commit 8fc5707061

View File

@ -247,6 +247,8 @@ public class MassiveCommand
}
}
try
{
// Set Sender Variables
this.sender = sender;
this.senderIsConsole = true;
@ -260,12 +262,15 @@ public class MassiveCommand
if ( ! isValidCall(this.sender, this.getArgs())) return;
perform();
}
finally
{
// Unset Sender Variables
this.sender = null;
this.me = null;
this.unsetSenderVars();
}
}
public void fixSenderVars()
{