Changed access to use this qualifier

This commit is contained in:
yueh
2014-12-29 15:13:47 +01:00
parent 2a5e57a59b
commit f471513bd0
604 changed files with 11573 additions and 11573 deletions
+4 -4
View File
@@ -31,7 +31,7 @@ public class AECommand extends CommandBase
final MinecraftServer srv;
public AECommand(MinecraftServer server) {
srv = server;
this.srv = server;
}
@Override
@@ -66,7 +66,7 @@ public class AECommand extends CommandBase
if ( args.length > 1 )
{
Commands c = Commands.valueOf( args[1] );
throw new WrongUsageException( c.command.getHelp( srv ) );
throw new WrongUsageException( c.command.getHelp( this.srv ) );
}
}
catch (Throwable er)
@@ -85,8 +85,8 @@ public class AECommand extends CommandBase
try
{
Commands c = Commands.valueOf( args[0] );
if ( sender.canCommandSenderUseCommand( c.level, getCommandName() ) )
c.command.call( srv, args, sender );
if ( sender.canCommandSenderUseCommand( c.level, this.getCommandName() ) )
c.command.call( this.srv, args, sender );
else
throw new WrongUsageException( "commands.ae2.permissions" );
}