Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public MoneyCheckPlayerCommand() {
super(List.of("money"));
addLiteral("check");
addArgument("player", new ArrayList<>());
setUsage("/em check <player>");
setUsage("/em money check <player>");
setPermission("elitemobs.money.check.player");
setDescription("Checks the currency of the specified player.");
}
Expand All @@ -22,4 +22,4 @@ public void execute(CommandData commandData) {
commandData.getCommandSender(),
commandData.getStringArgument("player"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public PlaceWormholeCommand() {
addLiteral("wormhole");
addArgument("filename", new ArrayList<>(WormholeConfig.getWormholes().keySet()));
addArgument("wormholeOption", List.of(1, 2));
setUsage("/em wormhole <filename> <1/2>");
setUsage("/em place wormhole <filename> <1/2>");
setPermission("elitemobs.place.wormhole");
setSenderType(SenderType.PLAYER);
setDescription("Place a wormhole teleport at your current location.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RankCommand extends AdvancedCommand {
public RankCommand() {
super(List.of("rank"));
setUsage("/em rank");
setDescription("Opens the EliteMobs rank menu.");
setDescription("Opens the EliteMobs rank menu or teleports you to the Adventurer's Guild.");
setSenderType(SenderType.PLAYER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public RepairCommand() {
setUsage("/em repair");
setPermission("elitemobs.repair.command");
setSenderType(SenderType.PLAYER);
setDescription("Opens the repair item menu or teleports the player to the Adventurer's Guild Hub");
setDescription("Opens the repair item menu or teleports the player to the Adventurer's Guild Hub.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public RespawnAllCommand() {
super(List.of("respawn"));
addLiteral("all");
setUsage("/em respawn all");
setPermission("elitemobs.*");
setPermission("elitemobs.respawn");
setDescription("Forces all regional bosses to respawn.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public ScrapCommand() {
setUsage("/em scrap");
setPermission("elitemobs.scrap.command");
setSenderType(SenderType.PLAYER);
setDescription("Opens the scrap menu or teleports the player to the Adventurer's Guild Hub");
setDescription("Opens the scrap menu or teleports the player to the Adventurer's Guild Hub.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class SetupCommand extends AdvancedCommand {
public SetupCommand() {
super(List.of("setup"));
setPermission("elitemobs.*");
setPermission("elitemobs.setup.main");
setSenderType(SenderType.PLAYER);
setDescription("The main command for setting up EliteMobs!");
setUsage("/em setup");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class SetupDoneCommand extends AdvancedCommand {
public SetupDoneCommand() {
super(List.of("setup"));
addLiteral("done");
setUsage("/setup done");
setPermission("elitemobs.*");
setUsage("/em setup done");
setPermission("elitemobs.setup.done");
setDescription("Toggles whether the setup message will show up.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
public class SetupToggleCommand extends AdvancedCommand {
public SetupToggleCommand() {
super(List.of("setup"));
setPermission("elitemobs.*");
setDescription("Sets up EliteMobs content!");
setUsage("/em setup toggle");
addLiteral("toggle");
addArgument("empackages", EMPackage.getEmPackages().values().stream().map(emPackage -> emPackage.getDungeonPackagerConfigFields().getFilename()).collect(Collectors.toUnmodifiableList()));
setUsage("/em setup toggle <dungeonConfig>");
setPermission("elitemobs.setup.toggle");
setDescription("Allows you to toggle the installation of specified EliteMobs content.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public ShareItemCommand() {
setUsage("/em shareItem");
setPermission("elitemobs.shareitem");
setSenderType(SenderType.PLAYER);
setDescription("Teleports players to the Adventurer's Guild Hub or opens the Adventurer's Guild menu.");
setDescription("Shares the stats of the currently held EliteMobs item in chat.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ShopCustomCommand() {
setUsage("/em shop custom");
setPermission("elitemobs.shop.command");
setSenderType(SenderType.PLAYER);
setDescription("Opens the procedurally generated item shop or teleports the player to the Adventurer's Guild Hub");
setDescription("Opens the procedurally generated item shop or teleports the player to the Adventurer's Guild Hub.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public ShopCustomOtherCommand() {
addLiteral("custom");
addArgument("player", new ArrayList<>());
setUsage("/em shop custom <player>");
setPermission("elitemobs.*");
setDescription("Opens the EliteMobs shop for custom items.");
setPermission("elitemobs.shop.custom.player");
setDescription("Opens the EliteMobs shop for custom items for the specified player.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ShopDynamicCommand() {
setUsage("/em shop dynamic");
setPermission("elitemobs.shop.command");
setSenderType(SenderType.PLAYER);
setDescription("Opens the procedurally generated item shop or teleports the player to the Adventurer's Guild Hub");
setDescription("Opens the procedurally generated item shop or teleports the player to the Adventurer's Guild Hub.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public ShopSellOtherCommand() {
super(List.of("shop"));
addLiteral("sell");
addArgument("player", new ArrayList<>());
setUsage("/em shop custom <player>");
setPermission("elitemobs.*");
setDescription("Opens the EliteMobs shop for custom items.");
setUsage("/em shop sell <player>");
setPermission("elitemobs.shop.sell.player");
setDescription("Opens the EliteMobs shop sell menu for the specified player.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public SpawnBossAtCommand() {
addArgument("x", new ArrayList<>());
addArgument("y", new ArrayList<>());
addArgument("z", new ArrayList<>());
setUsage("/setup spawnAt boss <filename> <worldName> <x> <y> <z>");
setPermission("elitemobs.*");
setDescription("Spawns a custom boss at the location the user is looking at.");
setUsage("/em spawn bossAt <filename> <worldName> <x> <y> <z>");
setPermission("elitemobs.spawn.boss.at");
setDescription("Spawns a custom boss at the specified location.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public SpawnBossCommand() {
super(List.of("spawn"));
addLiteral("boss");
addArgument("filename", new ArrayList<>(CustomBossesConfig.getCustomBosses().keySet()));
setUsage("/setup spawn boss <filename>");
setPermission("elitemobs.*");
setUsage("/em spawn boss <filename>");
setPermission("elitemobs.spawn.boss");
setSenderType(SenderType.PLAYER);
setDescription("Spawns a custom boss at the location the user is looking at.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public SpawnBossLevelAtCommand() {
addArgument("y", new ArrayList<>());
addArgument("z", new ArrayList<>());
addArgument("level", new ArrayList<>());
setUsage("/setup spawn bossAt <filename> <worldName> <x> <y> <z> <level>");
setPermission("elitemobs.*");
setDescription("Spawns a custom boss at the location the user is looking at.");
setUsage("/em spawn bossAt <filename> <worldName> <x> <y> <z> <level>");
setPermission("elitemobs.spawn.boss.at.level");
setDescription("Spawns a custom boss at the specified location with the specified level.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public SpawnBossLevelCommand() {
addLiteral("boss");
addArgument("filename", new ArrayList<>(CustomBossesConfig.getCustomBosses().keySet()));
addArgument("level", List.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19));
setUsage("/setup spawn boss <filename> <level>");
setPermission("elitemobs.*");
setUsage("/em spawn boss <filename> <level>");
setPermission("elitemobs.spawn.boss.level");
setSenderType(SenderType.PLAYER);
setDescription("Spawns a custom boss at the location the user is looking at.");
setDescription("Spawns a custom boss at the location the user is looking at with the specified level.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public SpawnElite() {
addArgument("level", new ArrayList<>());
addArgument("powers", ElitePower.getElitePowers().keySet().stream().toList());
setUsage("/em spawn elite <entityType> <level> <power1> <power2> <power3> <...>");
setPermission("elitemobs.*");
setPermission("elitemobs.spawn.elite");
setSenderType(SenderType.PLAYER);
setDescription("Spawns an elite of the specified type and level, and optionally with the specified powers.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public SpawnEliteAtCommand() {
addArgument("entityType", new ArrayList<>());
addArgument("level", new ArrayList<>());
addArgument("powers", ElitePower.getElitePowers().keySet().stream().toList());
setUsage("/em spawn elite <entityType> <level> <power1> <power2> <power3> <...>");
setPermission("elitemobs.*");
setUsage("/em spawn eliteAt <world> <x> <y> <z> <entityType> <level> <power1> <power2> <power3> <...>");
setPermission("elitemobs.spawn.elite.at");
setSenderType(SenderType.PLAYER);
setDescription("Spawns an elite of the specified type and level, and optionally with the specified powers.");
setDescription("Spawns an elite of the specified type and level, optionally with specified powers, at the chosen location.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public TransitiveBlocksCancelCommand() {
super(List.of("transitiveBlocks"));
addLiteral("cancel");
setUsage("/em transitiveBlocks cancel");
setPermission("elitemobs.*");
setPermission("elitemobs.transitiveblocks.cancel");
setDescription("Cancels transitive block registration.");
setSenderType(SenderType.PLAYER);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public TransitiveBlocksEditAreaCommand() {
addLiteral("editArea");
addArgument("filename", CustomBossesConfig.getCustomBosses().keySet().stream().toList());
addArgument("type", List.of("ON_SPAWN", "ON_REMOVE"));
setUsage("/em transitiveBlocks cancel");
setPermission("elitemobs.*");
setUsage("/em transitiveBlocks editArea <filename> <ON_SPAWN/ON_REMOVE>");
setPermission("elitemobs.transitiveblocks.edit.area");
setDescription("Edits large transitive blocks areas for use by regional bosses.");
setSenderType(SenderType.PLAYER);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public TransitiveBlocksEditCommand() {
addLiteral("edit");
addArgument("filename", CustomBossesConfig.getCustomBosses().keySet().stream().toList());
addArgument("type", List.of("ON_SPAWN", "ON_REMOVE"));
setUsage("/em transitiveBlocks cancel");
setPermission("elitemobs.*");
setDescription("Cancels transitive block registration.");
setUsage("/em transitiveBlocks edit <filename> <ON_SPAWN/ON_REMOVE>");
setPermission("elitemobs.transitiveblocks.edit.edit");
setDescription("Edits transitive blocks for use by regional bosses.");
setSenderType(SenderType.PLAYER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public TransitiveBlocksRegisterAreaCommand() {
addLiteral("registerArea");
addArgument("filename", CustomBossesConfig.getCustomBosses().keySet().stream().toList());
addArgument("type", List.of("ON_SPAWN", "ON_REMOVE"));
setUsage("/em transitiveBlocks cancel");
setPermission("elitemobs.*");
setUsage("/em transitiveBlocks registerArea <filename> <ON_SPAWN/ON_REMOVE>");
setPermission("elitemobs.transitiveblocks.register.area");
setDescription("Registers large transitive blocks areas for use by regional bosses.");
setSenderType(SenderType.PLAYER);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public TransitiveBlocksRegisterCommand() {
addLiteral("register");
addArgument("filename", CustomBossesConfig.getCustomBosses().keySet().stream().toList());
addArgument("type", List.of("ON_SPAWN", "ON_REMOVE"));
setUsage("/em transitiveBlocks cancel");
setPermission("elitemobs.*");
setDescription("Cancels transitive block registration.");
setUsage("/em transitiveBlocks register <filename> <ON_SPAWN/ON_REMOVE>");
setPermission("elitemobs.transitiveblocks.register.register");
setDescription("Registers transitive blocks for use by regional bosses.");
setSenderType(SenderType.PLAYER);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public UnbindCommand() {
setUsage("/em unbind");
setPermission("elitemobs.unbind.command");
setSenderType(SenderType.PLAYER);
setDescription("Opens the unbind menu or teleports the player to the Adventurer's Guild Hub");
setDescription("Opens the unbind menu or teleports the player to the Adventurer's Guild Hub.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public UnbindForceCommand() {
addLiteral("force");
setUsage("/em unbind force");
setSenderType(SenderType.PLAYER);
setPermission("elitemobs.*");
setPermission("elitemobs.unbind.force");
setDescription("Forcefully unbinds a held item.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class VersionCommand extends AdvancedCommand {
public VersionCommand() {
super(List.of("version"));
setUsage("/em version");
setPermission("elitemobs.*");
setDescription("Checks the server's plugin version.");
setPermission("elitemobs.version");
setDescription("Checks the server's EliteMobs plugin version.");
}

@Override
Expand Down
59 changes: 58 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,61 @@ permissions:
default: op
elitemobs.remove:
description: Allows players to toggle removal mode for EliteMobs, which can permanently remove any EliteMobs-related content.
default: op
default: op
elitemobs.respawn:
description: Allows players to force respawn all regional bosses.
default: op
elitemobs.setup.main:
description: Allows players to have access to the main command for setting up EliteMobs.
default: op
elitemobs.setup.done:
description: Allows players to toggle whether the setup message will show up in the server chat.
default: op
elitemobs.setup.toggle:
description: Allows players to toggle the installation of specified EliteMobs content.
default: op
elitemobs.shop.custom:
description: Allows players to open the EliteMobs shop for custom items for the specified player.
default: op
elitemobs.shop.sell.player:
description: Allows players to open the EliteMobs shop for custom items for the specified player.
default: op
elitemobs.spawn.boss.at:
description: Allows players to spawn a custom boss at the specified location.
default: op
elitemobs.spawn.boss:
description: Allows players to spawn a custom boss at the location the player is looking at.
default: op
elitemobs.spawn.boss.at.level:
description: Allows players to spawn a custom boss at the specified location with the specified level.
default: op
elitemobs.spawn.boss.level:
description: Allows players to spawn a custom boss at the location the user is looking at with the specified level.
default: op
elitemobs.spawn.elite:
description: Allows players to spawn an elite of a specified type and level, optionally with specific powers, at the targeted location.
default: op
elitemobs.spawn.elite.at:
description: Allows players to spawn an elite of the specified type and level, optionally with specified powers, at the chosen location.
default: op
elitemobs.transitiveblocks.cancel:
description: Allows players to cancel transitive block registration.
default: op
elitemobs.transitiveblocks.edit.area:
description: Allows players to edit large transitive blocks areas for use by regional bosses.
default: op
elitemobs.transitiveblocks.edit.edit:
description: Allows players to edit transitive blocks for use by regional bosses.
default: op
elitemobs.transitiveblocks.register.area:
description: Allows players to register large transitive blocks areas for use by regional bosses.
default: op
elitemobs.transitiveblocks.register.register:
description: Allows players to register transitive blocks for use by regional bosses.
default: op
elitemobs.unbind.force:
description: Allows players to forcefully unbind a held item.
default: op
elitemobs.version:
description: Allows players to check the server's EliteMobs plugin version.
default: op