本文整理汇总了Java中com.sk89q.minecraft.util.commands.NestedCommand类的典型用法代码示例。如果您正苦于以下问题:Java NestedCommand类的具体用法?Java NestedCommand怎么用?Java NestedCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NestedCommand类属于com.sk89q.minecraft.util.commands包,在下文中一共展示了NestedCommand类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: players
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"players", "ffa"},
desc = "Commands related to free-for-all matches",
min = 1,
max = -1
)
@NestedCommand({FreeForAllCommands.class})
public static void players() {
}
示例2: team
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"team"},
desc = "Commands for working with teams",
min = 1,
max = -1
)
@NestedCommand({TeamCommands.class})
public void team() {}
示例3: modes
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"mode", "modes"},
desc = "General mode commands",
min = 0,
max = -1
)
@NestedCommand(value = ObjectiveModeCommands.class, executeBody = true)
public void modes(CommandContext args, CommandSender sender) throws CommandException {
objectiveModeCommands.list(args, sender);
}
示例4: mutate
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"mutation", "mutations", "mutate", "mt"},
desc = "Commands to manage match mutations.",
usage = "<list|enable|disable>",
min = 1,
max = -1
)
@NestedCommand(value = MutationCommands.class, executeBody = true)
public void mutate(CommandContext args, CommandSender sender) throws CommandException {}
示例5: mapSelectionParentCommand
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"map", "mapselection"},
desc = "Map selection-related commands"
)
@NestedCommand(value = MapSelectionCommands.class, executeBody = true)
public void mapSelectionParentCommand(final CommandContext args, final CommandSender sender) throws CommandException {
if (!Arrays.asList(TourneyState.ENABLED_MAP_SELECTION, TourneyState.ENABLED_WAITING_FOR_READY).contains(tourney.getState())) {
throw new CommandException("This match is not in a state that is eligible for map selection.");
}
}
示例6: tourneyParentCommand
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"tourney", "tournament", "tm"},
desc = "Tournament-related commands"
)
@NestedCommand({TourneyCommands.class, TeamCommands.class, MapSelectionCommands.MapSelectionParentCommand.class})
public void tourneyParentCommand(final CommandContext args, final CommandSender sender) {
// never executed
}
示例7: log
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = "log",
desc = "Commands related to logging",
min = 1,
max = -1
)
@NestedCommand(LoggingCommands.class)
@CommandPermissions(Permissions.DEVELOPER)
public void log(CommandContext args, CommandSender sender) throws CommandException {}
示例8: model
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = "model",
desc = "Commands related to API models",
min = 1,
max = -1
)
@NestedCommand(ModelCommands.class)
@CommandPermissions(Permissions.DEVELOPER)
public void model(CommandContext args, CommandSender sender) throws CommandException {}
示例9: amqp
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = "amqp",
desc = "AMQP testing commands",
min = 1,
max = -1
)
@CommandPermissions(Permissions.DEVELOPER)
@NestedCommand(QueueCommands.class)
public void amqp(CommandContext args, CommandSender sender) throws CommandException {}
示例10: respack
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"respack"},
desc = "Commands to manage custom resource packs",
min = 1,
max = -1
)
@NestedCommand({ResourcePackCommands.class})
@CommandPermissions(PERMISSION)
public void respack() {}
示例11: skin
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"skin"},
desc = "Commands to manipulate skins",
min = 1,
max = -1
)
@NestedCommand({SkinCommands.class})
@CommandPermissions("skin.change")
public void skin() {
}
示例12: perm
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"permission", "perm"},
desc = "Commands to query permissions",
min = 1,
max = -1
)
@NestedCommand({PermissionCommands.class})
@CommandPermissions(Permissions.DEVELOPER)
public void perm() {
}
示例13: trace
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = "trace",
desc = "Packet dumping commands",
min = 1,
max = -1
)
@CommandPermissions(Permissions.DEVELOPER)
@NestedCommand(TraceCommands.class)
public void trace(CommandContext args, CommandSender sender) throws CommandException {}
示例14: trophies
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"trophies", "trophy"},
desc = "Commands relating to trophies."
)
@CommandPermissions(TrophyPermissions.BASE)
@NestedCommand(value = TrophyCommands.class, executeBody = true)
public void trophies(CommandContext args, CommandSender sender) throws CommandException {}
示例15: whitelist
import com.sk89q.minecraft.util.commands.NestedCommand; //导入依赖的package包/类
@Command(
aliases = {"whitelist", "wl"},
desc = "Commands to manipulate the player whitelist",
min = 1,
max = -1
)
@NestedCommand(WhitelistCommands.class)
@CommandPermissions(Whitelist.EDIT_PERM)
public void whitelist() {}