Renaming sender vars in the command system to more proper names.

This commit is contained in:
Olof Larsson
2013-04-25 07:29:19 +02:00
parent 882bdf4c88
commit e32a741b3b
36 changed files with 200 additions and 200 deletions

View File

@@ -19,20 +19,20 @@ public class CmdFactionsAdmin extends FCommand
@Override
public void perform()
{
Boolean target = this.arg(0, ARBoolean.get(), !fme.isUsingAdminMode());
Boolean target = this.arg(0, ARBoolean.get(), !usender.isUsingAdminMode());
if (target == null) return;
fme.setUsingAdminMode(target);
usender.setUsingAdminMode(target);
if ( fme.isUsingAdminMode())
if ( usender.isUsingAdminMode())
{
fme.msg("<i>You have enabled admin bypass mode.");
Factions.get().log(fme.getName() + " has ENABLED admin bypass mode.");
usender.msg("<i>You have enabled admin bypass mode.");
Factions.get().log(usender.getName() + " has ENABLED admin bypass mode.");
}
else
{
fme.msg("<i>You have disabled admin bypass mode.");
Factions.get().log(fme.getName() + " DISABLED admin bypass mode.");
usender.msg("<i>You have disabled admin bypass mode.");
Factions.get().log(usender.getName() + " DISABLED admin bypass mode.");
}
}
}