mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 19:55:17 +01:00
Commented out the default description and parameter help for now.
Let's discuss how to approach this better.
This commit is contained in:
parent
67ab937b97
commit
f3442a32ab
@ -128,8 +128,8 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
|||||||
plugin.getCommandsManager().registerCommand(this);
|
plugin.getCommandsManager().registerCommand(this);
|
||||||
}
|
}
|
||||||
// Default references to description and parameters
|
// Default references to description and parameters
|
||||||
setDescription("commands." + label + ".description");
|
//setDescription("commands." + label + ".description");
|
||||||
setParametersHelp("commands." + label + ".parameters");
|
//setParametersHelp("commands." + label + ".parameters");
|
||||||
setup();
|
setup();
|
||||||
if (!getSubCommand("help").isPresent() && !label.equals("help")) {
|
if (!getSubCommand("help").isPresent() && !label.equals("help")) {
|
||||||
new DefaultHelpCommand(this);
|
new DefaultHelpCommand(this);
|
||||||
@ -172,7 +172,7 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
|||||||
// Inherit world
|
// Inherit world
|
||||||
this.world = parent.getWorld();
|
this.world = parent.getWorld();
|
||||||
// Default references to description and parameters
|
// Default references to description and parameters
|
||||||
|
/*
|
||||||
StringBuilder reference = new StringBuilder();
|
StringBuilder reference = new StringBuilder();
|
||||||
reference.append("commands");
|
reference.append("commands");
|
||||||
CompositeCommand p = this;
|
CompositeCommand p = this;
|
||||||
@ -184,7 +184,7 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
|||||||
}
|
}
|
||||||
setDescription(reference.toString() + ".description");
|
setDescription(reference.toString() + ".description");
|
||||||
setParametersHelp(reference.toString() + ".parameters");
|
setParametersHelp(reference.toString() + ".parameters");
|
||||||
|
*/
|
||||||
setup();
|
setup();
|
||||||
// If this command does not define its own help class, then use the default help command
|
// If this command does not define its own help class, then use the default help command
|
||||||
if (!getSubCommand("help").isPresent() && !label.equals("help")) {
|
if (!getSubCommand("help").isPresent() && !label.equals("help")) {
|
||||||
|
@ -58,8 +58,6 @@ public class DefaultHelpCommand extends CompositeCommand {
|
|||||||
}
|
}
|
||||||
if (depth < MAX_DEPTH) {
|
if (depth < MAX_DEPTH) {
|
||||||
if (!parent.getLabel().equals(HELP)) {
|
if (!parent.getLabel().equals(HELP)) {
|
||||||
|
|
||||||
|
|
||||||
// Get elements
|
// Get elements
|
||||||
String usage = user.getTranslationOrNothing(parent.getUsage());
|
String usage = user.getTranslationOrNothing(parent.getUsage());
|
||||||
String params = user.getTranslationOrNothing(getParameters());
|
String params = user.getTranslationOrNothing(getParameters());
|
||||||
|
@ -2,8 +2,8 @@ package world.bentobox.bentobox.database.mongodb;
|
|||||||
|
|
||||||
import world.bentobox.bentobox.BentoBox;
|
import world.bentobox.bentobox.BentoBox;
|
||||||
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
|
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
|
||||||
import world.bentobox.bentobox.database.DatabaseSetup;
|
|
||||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||||
|
import world.bentobox.bentobox.database.DatabaseSetup;
|
||||||
|
|
||||||
public class MongoDBDatabase extends DatabaseSetup {
|
public class MongoDBDatabase extends DatabaseSetup {
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ import com.mongodb.MongoCredential;
|
|||||||
import com.mongodb.ServerAddress;
|
import com.mongodb.ServerAddress;
|
||||||
import com.mongodb.client.MongoDatabase;
|
import com.mongodb.client.MongoDatabase;
|
||||||
|
|
||||||
import world.bentobox.bentobox.database.DatabaseConnector;
|
|
||||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||||
|
import world.bentobox.bentobox.database.DatabaseConnector;
|
||||||
|
|
||||||
public class MongoDBDatabaseConnector implements DatabaseConnector {
|
public class MongoDBDatabaseConnector implements DatabaseConnector {
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ package world.bentobox.bentobox.database.mysql;
|
|||||||
|
|
||||||
import world.bentobox.bentobox.BentoBox;
|
import world.bentobox.bentobox.BentoBox;
|
||||||
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
|
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
|
||||||
import world.bentobox.bentobox.database.DatabaseSetup;
|
|
||||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||||
|
import world.bentobox.bentobox.database.DatabaseSetup;
|
||||||
|
|
||||||
public class MySQLDatabase extends DatabaseSetup {
|
public class MySQLDatabase extends DatabaseSetup {
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ import java.util.Map;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
|
|
||||||
import world.bentobox.bentobox.database.DatabaseConnector;
|
|
||||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||||
|
import world.bentobox.bentobox.database.DatabaseConnector;
|
||||||
|
|
||||||
public class MySQLDatabaseConnector implements DatabaseConnector {
|
public class MySQLDatabaseConnector implements DatabaseConnector {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user