final variables and parameters
This commit is contained in:
@@ -32,7 +32,7 @@ public final class AECommand extends CommandBase
|
||||
{
|
||||
private final MinecraftServer srv;
|
||||
|
||||
public AECommand( MinecraftServer server )
|
||||
public AECommand( final MinecraftServer server )
|
||||
{
|
||||
this.srv = server;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public final class AECommand extends CommandBase
|
||||
* wtf?
|
||||
*/
|
||||
@Override
|
||||
public int compareTo( Object arg0 )
|
||||
public int compareTo( final Object arg0 )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -59,15 +59,15 @@ public final class AECommand extends CommandBase
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommandUsage( ICommandSender icommandsender )
|
||||
public String getCommandUsage( final ICommandSender icommandsender )
|
||||
{
|
||||
return "commands.ae2.usage";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processCommand(
|
||||
ICommandSender sender,
|
||||
String[] args ) throws CommandException
|
||||
final ICommandSender sender,
|
||||
final String[] args ) throws CommandException
|
||||
{
|
||||
if( args.length == 0 )
|
||||
{
|
||||
@@ -79,15 +79,15 @@ public final class AECommand extends CommandBase
|
||||
{
|
||||
if( args.length > 1 )
|
||||
{
|
||||
Commands c = Commands.valueOf( args[1] );
|
||||
final Commands c = Commands.valueOf( args[1] );
|
||||
throw new WrongUsageException( c.command.getHelp( this.srv ) );
|
||||
}
|
||||
}
|
||||
catch( WrongUsageException wrong )
|
||||
catch( final WrongUsageException wrong )
|
||||
{
|
||||
throw wrong;
|
||||
}
|
||||
catch( Throwable er )
|
||||
catch( final Throwable er )
|
||||
{
|
||||
throw new WrongUsageException( "commands.ae2.usage" );
|
||||
}
|
||||
@@ -100,7 +100,7 @@ public final class AECommand extends CommandBase
|
||||
{
|
||||
try
|
||||
{
|
||||
Commands c = Commands.valueOf( args[0] );
|
||||
final Commands c = Commands.valueOf( args[0] );
|
||||
if( sender.canCommandSenderUseCommand( c.level, this.getCommandName() ) )
|
||||
{
|
||||
c.command.call( this.srv, args, sender );
|
||||
@@ -110,11 +110,11 @@ public final class AECommand extends CommandBase
|
||||
throw new WrongUsageException( "commands.ae2.permissions" );
|
||||
}
|
||||
}
|
||||
catch( WrongUsageException wrong )
|
||||
catch( final WrongUsageException wrong )
|
||||
{
|
||||
throw wrong;
|
||||
}
|
||||
catch( Throwable er )
|
||||
catch( final Throwable er )
|
||||
{
|
||||
throw new WrongUsageException( "commands.ae2.usage" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user