Fixes some minor warnings and spacing
This commit is contained in:
@@ -23,7 +23,7 @@ public class StargateCommand extends JavaPlugin {
|
|||||||
StargateAPI stargateAPI = stargateProvider.getProvider();
|
StargateAPI stargateAPI = stargateProvider.getProvider();
|
||||||
|
|
||||||
//Register commands
|
//Register commands
|
||||||
PluginCommand stargateCommand = this.getCommand("stargatecommand");
|
PluginCommand stargateCommand = this.getCommand("stargateCommand");
|
||||||
if (stargateCommand != null) {
|
if (stargateCommand != null) {
|
||||||
stargateCommand.setExecutor(new CommandStarGateCommand(stargateAPI));
|
stargateCommand.setExecutor(new CommandStarGateCommand(stargateAPI));
|
||||||
stargateCommand.setTabCompleter(new StargateCommandTabCompleter());
|
stargateCommand.setTabCompleter(new StargateCommandTabCompleter());
|
||||||
|
|||||||
@@ -112,8 +112,8 @@ public class CommandConfig implements CommandExecutor {
|
|||||||
/**
|
/**
|
||||||
* Checks if the given value is valid for the given option data type and warns if it isn't
|
* Checks if the given value is valid for the given option data type and warns if it isn't
|
||||||
*
|
*
|
||||||
* @param dataType <p>The expected type for the value</p>
|
* @param dataType <p>The expected type for the value</p>
|
||||||
* @param value <p>The value to check</p>
|
* @param value <p>The value to check</p>
|
||||||
* @param commandSender <p>The command sender to warn about invalid values</p>
|
* @param commandSender <p>The command sender to warn about invalid values</p>
|
||||||
* @return <p>True if the given value is valid for the option data type</p>
|
* @return <p>True if the given value is valid for the option data type</p>
|
||||||
*/
|
*/
|
||||||
@@ -131,7 +131,7 @@ public class CommandConfig implements CommandExecutor {
|
|||||||
* Checks if the given value is valid for the given option data type
|
* Checks if the given value is valid for the given option data type
|
||||||
*
|
*
|
||||||
* @param dataType <p>The expected type for the value</p>
|
* @param dataType <p>The expected type for the value</p>
|
||||||
* @param value <p>The value to check</p>
|
* @param value <p>The value to check</p>
|
||||||
* @return <p>True if the given value is valid for the option data type</p>
|
* @return <p>True if the given value is valid for the option data type</p>
|
||||||
*/
|
*/
|
||||||
private boolean matchesOptionDataType(OptionDataType dataType, String value) {
|
private boolean matchesOptionDataType(OptionDataType dataType, String value) {
|
||||||
@@ -141,7 +141,7 @@ public class CommandConfig implements CommandExecutor {
|
|||||||
/**
|
/**
|
||||||
* Saves the configuration file and reloads
|
* Saves the configuration file and reloads
|
||||||
*
|
*
|
||||||
* @param commandSender <p>The command sender that executed the config command</p>
|
* @param commandSender <p>The command sender that executed the config command</p>
|
||||||
*/
|
*/
|
||||||
private void saveAndReload(CommandSender commandSender) {
|
private void saveAndReload(CommandSender commandSender) {
|
||||||
configurationAPI.saveConfiguration();
|
configurationAPI.saveConfiguration();
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
*/
|
*/
|
||||||
public class CommandStarGateCommand implements CommandExecutor {
|
public class CommandStarGateCommand implements CommandExecutor {
|
||||||
|
|
||||||
private StargateAPI stargateAPI;
|
private final StargateAPI stargateAPI;
|
||||||
|
|
||||||
public CommandStarGateCommand(StargateAPI stargateAPI) {
|
public CommandStarGateCommand(StargateAPI stargateAPI) {
|
||||||
this.stargateAPI = stargateAPI;
|
this.stargateAPI = stargateAPI;
|
||||||
|
|||||||
Reference in New Issue
Block a user