mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 13:45:14 +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);
|
||||
}
|
||||
// Default references to description and parameters
|
||||
setDescription("commands." + label + ".description");
|
||||
setParametersHelp("commands." + label + ".parameters");
|
||||
//setDescription("commands." + label + ".description");
|
||||
//setParametersHelp("commands." + label + ".parameters");
|
||||
setup();
|
||||
if (!getSubCommand("help").isPresent() && !label.equals("help")) {
|
||||
new DefaultHelpCommand(this);
|
||||
@ -172,7 +172,7 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
||||
// Inherit world
|
||||
this.world = parent.getWorld();
|
||||
// Default references to description and parameters
|
||||
|
||||
/*
|
||||
StringBuilder reference = new StringBuilder();
|
||||
reference.append("commands");
|
||||
CompositeCommand p = this;
|
||||
@ -184,7 +184,7 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
||||
}
|
||||
setDescription(reference.toString() + ".description");
|
||||
setParametersHelp(reference.toString() + ".parameters");
|
||||
|
||||
*/
|
||||
setup();
|
||||
// If this command does not define its own help class, then use the default help command
|
||||
if (!getSubCommand("help").isPresent() && !label.equals("help")) {
|
||||
|
@ -58,8 +58,6 @@ public class DefaultHelpCommand extends CompositeCommand {
|
||||
}
|
||||
if (depth < MAX_DEPTH) {
|
||||
if (!parent.getLabel().equals(HELP)) {
|
||||
|
||||
|
||||
// Get elements
|
||||
String usage = user.getTranslationOrNothing(parent.getUsage());
|
||||
String params = user.getTranslationOrNothing(getParameters());
|
||||
|
@ -2,8 +2,8 @@ package world.bentobox.bentobox.database.mongodb;
|
||||
|
||||
import world.bentobox.bentobox.BentoBox;
|
||||
import world.bentobox.bentobox.database.AbstractDatabaseHandler;
|
||||
import world.bentobox.bentobox.database.DatabaseSetup;
|
||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||
import world.bentobox.bentobox.database.DatabaseSetup;
|
||||
|
||||
public class MongoDBDatabase extends DatabaseSetup {
|
||||
|
||||
|
@ -10,8 +10,8 @@ import com.mongodb.MongoCredential;
|
||||
import com.mongodb.ServerAddress;
|
||||
import com.mongodb.client.MongoDatabase;
|
||||
|
||||
import world.bentobox.bentobox.database.DatabaseConnector;
|
||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||
import world.bentobox.bentobox.database.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.database.AbstractDatabaseHandler;
|
||||
import world.bentobox.bentobox.database.DatabaseSetup;
|
||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||
import world.bentobox.bentobox.database.DatabaseSetup;
|
||||
|
||||
public class MySQLDatabase extends DatabaseSetup {
|
||||
|
||||
|
@ -8,8 +8,8 @@ import java.util.Map;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import world.bentobox.bentobox.database.DatabaseConnector;
|
||||
import world.bentobox.bentobox.database.DatabaseConnectionSettingsImpl;
|
||||
import world.bentobox.bentobox.database.DatabaseConnector;
|
||||
|
||||
public class MySQLDatabaseConnector implements DatabaseConnector {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user