Clean up player references even on exception.
This commit is contained in:
parent
b083182291
commit
8fc5707061
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user