mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 17:18:47 +01:00
Fixed main command setup.
Added comments.
This commit is contained in:
parent
c2e37ad2ae
commit
b3e4eeebc2
@ -18,6 +18,11 @@ import us.tastybento.bskyblock.BSkyBlock;
|
|||||||
import us.tastybento.bskyblock.database.managers.PlayersManager;
|
import us.tastybento.bskyblock.database.managers.PlayersManager;
|
||||||
import us.tastybento.bskyblock.database.managers.island.IslandsManager;
|
import us.tastybento.bskyblock.database.managers.island.IslandsManager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* BSB composite command
|
||||||
|
* @author ben, poslovich
|
||||||
|
*
|
||||||
|
*/
|
||||||
public abstract class CompositeCommand extends Command implements PluginIdentifiableCommand, TabCompleter {
|
public abstract class CompositeCommand extends Command implements PluginIdentifiableCommand, TabCompleter {
|
||||||
|
|
||||||
private String helpReference;
|
private String helpReference;
|
||||||
|
@ -16,6 +16,11 @@ import org.bukkit.permissions.PermissionAttachmentInfo;
|
|||||||
|
|
||||||
import us.tastybento.bskyblock.BSkyBlock;
|
import us.tastybento.bskyblock.BSkyBlock;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* BSB's user object. Wraps Player.
|
||||||
|
* @author ben
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private static Map<UUID, User> users = new HashMap<>();
|
private static Map<UUID, User> users = new HashMap<>();
|
||||||
|
@ -8,7 +8,7 @@ import us.tastybento.bskyblock.config.Settings;
|
|||||||
public class AdminCommand extends CompositeCommand {
|
public class AdminCommand extends CompositeCommand {
|
||||||
|
|
||||||
public AdminCommand() {
|
public AdminCommand() {
|
||||||
super(Settings.ADMINCOMMAND, "Admin commands", "bsb");
|
super(Settings.ADMINCOMMAND, "bsb");
|
||||||
this.setPermission(Settings.PERMPREFIX + "admin.*");
|
this.setPermission(Settings.PERMPREFIX + "admin.*");
|
||||||
this.setOnlyPlayer(false);
|
this.setOnlyPlayer(false);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import us.tastybento.bskyblock.config.Settings;
|
|||||||
public class IslandCommand extends CompositeCommand {
|
public class IslandCommand extends CompositeCommand {
|
||||||
|
|
||||||
public IslandCommand() {
|
public IslandCommand() {
|
||||||
super(Settings.ISLANDCOMMAND, "Main player command", "is");
|
super(Settings.ISLANDCOMMAND, "is");
|
||||||
this.setOnlyPlayer(true);
|
this.setOnlyPlayer(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,11 @@ import us.tastybento.bskyblock.api.commands.CompositeCommand;
|
|||||||
import us.tastybento.bskyblock.api.commands.User;
|
import us.tastybento.bskyblock.api.commands.User;
|
||||||
import us.tastybento.bskyblock.config.Settings;
|
import us.tastybento.bskyblock.config.Settings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A safe common space for team commands to share data
|
||||||
|
* @author ben
|
||||||
|
*
|
||||||
|
*/
|
||||||
public abstract class AbstractTeamCommand extends CompositeCommand {
|
public abstract class AbstractTeamCommand extends CompositeCommand {
|
||||||
|
|
||||||
protected final static boolean DEBUG = false;
|
protected final static boolean DEBUG = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user