当前位置: 首页>>代码示例>>Java>>正文


Java NestedCommand类代码示例

本文整理汇总了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() {
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:FreeForAllCommands.java

示例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() {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:9,代码来源:TeamCommands.java

示例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);
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:11,代码来源:ObjectiveModeCommands.java

示例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 {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:MutationCommands.java

示例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.");
    }
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:11,代码来源:MapSelectionCommands.java

示例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
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:9,代码来源:TourneyCommands.java

示例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 {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:LoggingCommands.java

示例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 {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:ModelCommands.java

示例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 {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:QueueCommands.java

示例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() {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:ResourcePackCommands.java

示例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() {
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:11,代码来源:SkinCommands.java

示例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() {
}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:11,代码来源:PermissionCommands.java

示例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 {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:TraceCommands.java

示例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 {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:8,代码来源:TrophyCommands.java

示例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() {}
 
开发者ID:OvercastNetwork,项目名称:ProjectAres,代码行数:10,代码来源:WhitelistCommands.java


注:本文中的com.sk89q.minecraft.util.commands.NestedCommand类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。