Fixed main command setup.

Added comments.
This commit is contained in:
Tastybento 2017-12-21 23:16:43 -08:00
parent c2e37ad2ae
commit b3e4eeebc2
5 changed files with 17 additions and 2 deletions

View File

@ -18,6 +18,11 @@ import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.bskyblock.database.managers.PlayersManager;
import us.tastybento.bskyblock.database.managers.island.IslandsManager;
/**
* BSB composite command
* @author ben, poslovich
*
*/
public abstract class CompositeCommand extends Command implements PluginIdentifiableCommand, TabCompleter {
private String helpReference;

View File

@ -16,6 +16,11 @@ import org.bukkit.permissions.PermissionAttachmentInfo;
import us.tastybento.bskyblock.BSkyBlock;
/**
* BSB's user object. Wraps Player.
* @author ben
*
*/
public class User {
private static Map<UUID, User> users = new HashMap<>();

View File

@ -8,7 +8,7 @@ import us.tastybento.bskyblock.config.Settings;
public class AdminCommand extends CompositeCommand {
public AdminCommand() {
super(Settings.ADMINCOMMAND, "Admin commands", "bsb");
super(Settings.ADMINCOMMAND, "bsb");
this.setPermission(Settings.PERMPREFIX + "admin.*");
this.setOnlyPlayer(false);
}

View File

@ -21,7 +21,7 @@ import us.tastybento.bskyblock.config.Settings;
public class IslandCommand extends CompositeCommand {
public IslandCommand() {
super(Settings.ISLANDCOMMAND, "Main player command", "is");
super(Settings.ISLANDCOMMAND, "is");
this.setOnlyPlayer(true);
}

View File

@ -15,6 +15,11 @@ import us.tastybento.bskyblock.api.commands.CompositeCommand;
import us.tastybento.bskyblock.api.commands.User;
import us.tastybento.bskyblock.config.Settings;
/**
* A safe common space for team commands to share data
* @author ben
*
*/
public abstract class AbstractTeamCommand extends CompositeCommand {
protected final static boolean DEBUG = false;