|
55 | 55 | @Plugin(id = "tim", name = "Tim the Enchanter", version = "4.1.0-for-7.0") |
56 | 56 | public final class Tim { |
57 | 57 |
|
58 | | - private static final String COMMAND_ARG_ENCHANTMENT = "enchantment"; |
59 | | - private static final String COMMAND_ARG_LEVEL = "level"; |
| 58 | + public static final String COMMAND_ARG_ENCHANTMENT = "enchantment"; |
| 59 | + public static final String COMMAND_ARG_LEVEL = "level"; |
60 | 60 |
|
61 | | - private static final String PERMISSION_ENCHANT = "enchanter.enchant"; |
| 61 | + public static final String PERMISSION_ENCHANT = "enchanter.enchant"; |
62 | 62 |
|
63 | | - private static final List<String> QUOTES = ImmutableList.of( |
| 63 | + public static final List<String> QUOTES = ImmutableList.of( |
64 | 64 | "Behold the cave of Caerbannog!", |
65 | 65 | "That's no ordinary rabbit.\n" + |
66 | 66 | "That's the most foul, cruel,\n" + |
@@ -93,7 +93,7 @@ public void onGameServerStarting(final GameStartingServerEvent event) { |
93 | 93 | .arguments(GenericArguments.catalogedElement(Text.of(COMMAND_ARG_ENCHANTMENT), EnchantmentType.class), GenericArguments.optional(GenericArguments.string(Text.of(COMMAND_ARG_LEVEL)))) |
94 | 94 | .child(enchantAllCommandSpec, "all") |
95 | 95 | .executor(this::commandEnchant).build(); |
96 | | - this.game.getCommandManager().register(this, enchantCommandSpec, "enchant"); |
| 96 | + this.game.getCommandManager().register(this, enchantCommandSpec, "enchant", "tim"); |
97 | 97 | this.logger.info("There are some who call me... Tim?"); |
98 | 98 | } |
99 | 99 |
|
|
0 commit comments