Generic cleanup of warnings, whitespace and style.
This commit is contained in:
@@ -12,7 +12,7 @@ import org.bukkit.plugin.PluginDescriptionFile;
|
||||
public class VersionCommand extends Command {
|
||||
public VersionCommand(String name) {
|
||||
super(name);
|
||||
|
||||
|
||||
this.description = "Gets the version of this server including any plugins in use";
|
||||
this.usageMessage = "/version [plugin name]";
|
||||
this.setPermission("bukkit.command.version");
|
||||
@@ -22,7 +22,7 @@ public class VersionCommand extends Command {
|
||||
@Override
|
||||
public boolean execute(CommandSender sender, String currentAlias, String[] args) {
|
||||
if (!testPermission(sender)) return true;
|
||||
|
||||
|
||||
if (args.length == 0) {
|
||||
sender.sendMessage("This server is running " + Bukkit.getName() + " version " + Bukkit.getVersion() + " (Implementing API version " + Bukkit.getBukkitVersion() + ")");
|
||||
} else {
|
||||
@@ -32,7 +32,7 @@ public class VersionCommand extends Command {
|
||||
if (name.length() > 0) {
|
||||
name.append(' ');
|
||||
}
|
||||
|
||||
|
||||
name.append(arg);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public class VersionCommand extends Command {
|
||||
result.append(ChatColor.GREEN);
|
||||
result.append(authors.get(i));
|
||||
}
|
||||
|
||||
|
||||
return result.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user