mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +01:00
Add descriptions to commands
This commit is contained in:
@@ -7,7 +7,7 @@ import emu.lunarcore.game.account.AccountHelper;
|
|||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
import emu.lunarcore.util.Utils;
|
import emu.lunarcore.util.Utils;
|
||||||
|
|
||||||
@Command(label = "account", permission = "admin.account")
|
@Command(label = "account", permission = "admin.account", desc = "/account {create | delete} [username] (reserved player uid). Creates or deletes an account.")
|
||||||
public class AccountCommand implements CommandHandler {
|
public class AccountCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import emu.lunarcore.game.inventory.GameItem;
|
|||||||
import emu.lunarcore.game.inventory.ItemMainType;
|
import emu.lunarcore.game.inventory.ItemMainType;
|
||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
|
|
||||||
@Command(label = "clear", permission = "player.clear")
|
@Command(label = "clear", permission = "player.clear", desc = "/clear {relics | lightcones | materials | items}. Removes filtered items from the player inventory.")
|
||||||
public class ClearCommand implements CommandHandler {
|
public class ClearCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import emu.lunarcore.game.player.Player;
|
|||||||
import emu.lunarcore.game.player.PlayerGender;
|
import emu.lunarcore.game.player.PlayerGender;
|
||||||
import emu.lunarcore.server.packet.send.PacketGetHeroBasicTypeInfoScRsp;
|
import emu.lunarcore.server.packet.send.PacketGetHeroBasicTypeInfoScRsp;
|
||||||
|
|
||||||
@Command(label = "gender", permission = "player.gender")
|
@Command(label = "gender", permission = "player.gender", desc = "/gender {male | female}. Sets the player gender.")
|
||||||
public class GenderCommand implements CommandHandler {
|
public class GenderCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import emu.lunarcore.game.inventory.ItemMainType;
|
|||||||
import emu.lunarcore.game.inventory.ItemSubType;
|
import emu.lunarcore.game.inventory.ItemSubType;
|
||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
|
|
||||||
@Command(label = "giveall", aliases = {"ga"}, permission = "player.give")
|
@Command(label = "giveall", aliases = {"ga"}, permission = "player.give", desc = "/giveall {materials | avatars}. Gives the targeted player items.")
|
||||||
public class GiveAllCommand implements CommandHandler {
|
public class GiveAllCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import emu.lunarcore.game.inventory.GameItem;
|
|||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
import emu.lunarcore.util.Utils;
|
import emu.lunarcore.util.Utils;
|
||||||
|
|
||||||
@Command(label = "give", aliases = {"g"}, permission = "player.give")
|
@Command(label = "give", aliases = {"g"}, permission = "player.give", desc = "/give [item id] x[amount]. Gives the targetted player an item.")
|
||||||
public class GiveCommand implements CommandHandler {
|
public class GiveCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import emu.lunarcore.command.CommandArgs;
|
|||||||
import emu.lunarcore.command.CommandHandler;
|
import emu.lunarcore.command.CommandHandler;
|
||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
|
|
||||||
@Command(label = "permission", aliases = {"perm"}, permission = "admin.permission")
|
@Command(label = "permission", aliases = {"perm"}, permission = "admin.permission", desc = "/permission {add | remove | clear} [permission]. Gives/removes a permission from the targeted player.")
|
||||||
public class PermissionCommand implements CommandHandler {
|
public class PermissionCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import emu.lunarcore.command.CommandArgs;
|
|||||||
import emu.lunarcore.command.CommandHandler;
|
import emu.lunarcore.command.CommandHandler;
|
||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
|
|
||||||
@Command(label = "reload", permission = "admin.reload")
|
@Command(label = "reload", permission = "admin.reload", desc = "/reload. Reloads the server config.")
|
||||||
public class ReloadCommand implements CommandHandler {
|
public class ReloadCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import emu.lunarcore.game.scene.entity.EntityProp;
|
|||||||
import emu.lunarcore.util.Position;
|
import emu.lunarcore.util.Position;
|
||||||
import emu.lunarcore.util.Utils;
|
import emu.lunarcore.util.Utils;
|
||||||
|
|
||||||
@Command(label = "spawn", permission = "player.spawn")
|
@Command(label = "spawn", permission = "player.spawn", desc = "/spawn [monster/prop id] x[amount] s[stage id]. Spawns a monster or prop near the targeted player.")
|
||||||
public class SpawnCommand implements CommandHandler {
|
public class SpawnCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import emu.lunarcore.command.CommandHandler;
|
|||||||
import emu.lunarcore.game.player.Player;
|
import emu.lunarcore.game.player.Player;
|
||||||
import emu.lunarcore.util.Utils;
|
import emu.lunarcore.util.Utils;
|
||||||
|
|
||||||
@Command(label = "worldlevel", aliases = {"wl"}, permission = "player.worldlevel")
|
@Command(label = "worldlevel", aliases = {"wl"}, permission = "player.worldlevel", desc = "/worldlevel [world level]. Sets the targeted player's equilibrium level.")
|
||||||
public class WorldLevelCommand implements CommandHandler {
|
public class WorldLevelCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user