mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 04:08:20 +00:00
Add all aliases, register missing commands
This commit is contained in:
parent
c84a547f4f
commit
6ed85badd8
@ -86,11 +86,14 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SlashCommandHandler::RegisterCommand(Command command) {
|
void SlashCommandHandler::RegisterCommand(Command command) {
|
||||||
|
if (command.aliases.empty()) return;
|
||||||
|
|
||||||
LOG_DEBUG("Registering SlashCommand: %s", command.aliases[0].c_str());
|
LOG_DEBUG("Registering SlashCommand: %s", command.aliases[0].c_str());
|
||||||
std::vector<std::string> toRemove;
|
std::vector<std::string> toRemove;
|
||||||
for (auto& alias : command.aliases) {
|
for (auto& alias : command.aliases) {
|
||||||
|
if (alias.empty()) continue;
|
||||||
if (RegisteredCommands.contains(alias)){
|
if (RegisteredCommands.contains(alias)){
|
||||||
LOG("Command alias %s is already registered! Skipping!", alias.c_str());
|
LOG_DEBUG("Command alias %s is already registered! Skipping!", alias.c_str());
|
||||||
// denote it to be removed
|
// denote it to be removed
|
||||||
toRemove.push_back(alias);
|
toRemove.push_back(alias);
|
||||||
continue;
|
continue;
|
||||||
@ -135,63 +138,62 @@ void SlashCommandHandler::Startup() {
|
|||||||
RegisterCommand(ToggleSkipCinematicsCommand);
|
RegisterCommand(ToggleSkipCinematicsCommand);
|
||||||
|
|
||||||
Command KillCommand {
|
Command KillCommand {
|
||||||
.help = "",
|
.help = "Smash a user",
|
||||||
.info = "",
|
.info = "Smashes the character whom the given user is playing",
|
||||||
.aliases = { "" },
|
.aliases = { "kill" },
|
||||||
.handle = DEVGMCommands::Kill,
|
.handle = DEVGMCommands::Kill,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
RegisterCommand(KillCommand);
|
RegisterCommand(KillCommand);
|
||||||
|
|
||||||
Command MetricsCommand {
|
Command MetricsCommand {
|
||||||
.help = "",
|
.help = "Display server metrics",
|
||||||
.info = "",
|
.info = "Prints some information about the server's performance",
|
||||||
.aliases = { "" },
|
.aliases = { "metrics" },
|
||||||
.handle = DEVGMCommands::Metrics,
|
.handle = DEVGMCommands::Metrics,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
RegisterCommand(MetricsCommand);
|
RegisterCommand(MetricsCommand);
|
||||||
|
|
||||||
Command AnnounceCommand {
|
Command AnnounceCommand {
|
||||||
.help = "",
|
.help = " Send and announcement",
|
||||||
.info = "",
|
.info = "Sends an announcement. `/setanntitle` and `/setannmsg` must be called first to configure the announcement.",
|
||||||
.aliases = { "" },
|
.aliases = { "announce" },
|
||||||
.handle = DEVGMCommands::Announce,
|
.handle = DEVGMCommands::Announce,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
RegisterCommand(AnnounceCommand);
|
RegisterCommand(AnnounceCommand);
|
||||||
|
|
||||||
Command SetAnnTitleCommand {
|
Command SetAnnTitleCommand {
|
||||||
.help = "",
|
.help = "Sets the title of an announcement",
|
||||||
.info = "",
|
.info = "Sets the title of an announcement. Use with `/setannmsg` and `/announce`",
|
||||||
.aliases = { "" },
|
.aliases = { "setanntitle" },
|
||||||
.handle = DEVGMCommands::SetAnnTitle,
|
.handle = DEVGMCommands::SetAnnTitle,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
RegisterCommand(SetAnnTitleCommand);
|
RegisterCommand(SetAnnTitleCommand);
|
||||||
|
|
||||||
Command SetAnnMsgCommand {
|
Command SetAnnMsgCommand {
|
||||||
.help = "",
|
.help = "Sets the message of an announcement",
|
||||||
.info = "",
|
.info = "Sets the message of an announcement. Use with `/setannmtitle` and `/announce`",
|
||||||
.aliases = { "" },
|
.aliases = { "setannmsg" },
|
||||||
.handle = DEVGMCommands::SetAnnMsg,
|
.handle = DEVGMCommands::SetAnnMsg,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
RegisterCommand(SetAnnMsgCommand);
|
RegisterCommand(SetAnnMsgCommand);
|
||||||
|
|
||||||
Command ShutdownUniverseCommand {
|
Command ShutdownUniverseCommand {
|
||||||
.help = "",
|
.help = "Sends a shutdown message to the master server",
|
||||||
.info = "",
|
.info = "Sends a shutdown message to the master server. This will send an announcement to all players that the universe will shut down in 10 minutes.",
|
||||||
.aliases = { "" },
|
.aliases = { "shutdownuniverse" },
|
||||||
.handle = DEVGMCommands::ShutdownUniverse,
|
.handle = DEVGMCommands::ShutdownUniverse
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
|
||||||
};
|
};
|
||||||
RegisterCommand(ShutdownUniverseCommand);
|
RegisterCommand(ShutdownUniverseCommand);
|
||||||
|
|
||||||
Command SetMinifigCommand {
|
Command SetMinifigCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setminifig" },
|
||||||
.handle = DEVGMCommands::SetMinifig,
|
.handle = DEVGMCommands::SetMinifig,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -200,7 +202,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command TestMapCommand {
|
Command TestMapCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "testmap", "tm" },
|
||||||
.handle = DEVGMCommands::TestMap,
|
.handle = DEVGMCommands::TestMap,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -209,7 +211,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ReportProxPhysCommand {
|
Command ReportProxPhysCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "reportproxphys" },
|
||||||
.handle = DEVGMCommands::ReportProxPhys,
|
.handle = DEVGMCommands::ReportProxPhys,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -218,7 +220,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SpawnPhysicsVertsCommand {
|
Command SpawnPhysicsVertsCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "spawnphysicsverts" },
|
||||||
.handle = DEVGMCommands::SpawnPhysicsVerts,
|
.handle = DEVGMCommands::SpawnPhysicsVerts,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -227,7 +229,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command TeleportCommand {
|
Command TeleportCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "teleport", "tele", "tp" },
|
||||||
.handle = DEVGMCommands::Teleport,
|
.handle = DEVGMCommands::Teleport,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -236,7 +238,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ActivateSpawnerCommand {
|
Command ActivateSpawnerCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "activatespawner" },
|
||||||
.handle = DEVGMCommands::ActivateSpawner,
|
.handle = DEVGMCommands::ActivateSpawner,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -245,7 +247,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command AddMissionCommand {
|
Command AddMissionCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "addmission" },
|
||||||
.handle = DEVGMCommands::AddMission,
|
.handle = DEVGMCommands::AddMission,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -254,7 +256,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command BoostCommand {
|
Command BoostCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "boost" },
|
||||||
.handle = DEVGMCommands::Boost,
|
.handle = DEVGMCommands::Boost,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -263,7 +265,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command UnboostCommand {
|
Command UnboostCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "unboost" },
|
||||||
.handle = DEVGMCommands::Unboost,
|
.handle = DEVGMCommands::Unboost,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -272,7 +274,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command BuffCommand {
|
Command BuffCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "buff" },
|
||||||
.handle = DEVGMCommands::Buff,
|
.handle = DEVGMCommands::Buff,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -281,7 +283,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command BuffMeCommand {
|
Command BuffMeCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "buffme" },
|
||||||
.handle = DEVGMCommands::BuffMe,
|
.handle = DEVGMCommands::BuffMe,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -290,7 +292,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command BuffMedCommand {
|
Command BuffMedCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "buffmed" },
|
||||||
.handle = DEVGMCommands::BuffMed,
|
.handle = DEVGMCommands::BuffMed,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -299,7 +301,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ClearFlagCommand {
|
Command ClearFlagCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "clearflag" },
|
||||||
.handle = DEVGMCommands::ClearFlag,
|
.handle = DEVGMCommands::ClearFlag,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -308,7 +310,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command CompleteMissionCommand {
|
Command CompleteMissionCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "completemission" },
|
||||||
.handle = DEVGMCommands::CompleteMission,
|
.handle = DEVGMCommands::CompleteMission,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -317,7 +319,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command CreatePrivateCommand {
|
Command CreatePrivateCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "createprivate" },
|
||||||
.handle = DEVGMCommands::CreatePrivate,
|
.handle = DEVGMCommands::CreatePrivate,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -326,7 +328,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command DebugUiCommand {
|
Command DebugUiCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "debugui" },
|
||||||
.handle = DEVGMCommands::DebugUi,
|
.handle = DEVGMCommands::DebugUi,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -335,7 +337,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command DismountCommand {
|
Command DismountCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "dismount" },
|
||||||
.handle = DEVGMCommands::Dismount,
|
.handle = DEVGMCommands::Dismount,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -344,7 +346,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ReloadConfigCommand {
|
Command ReloadConfigCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "reloadconfig", "reload-config" },
|
||||||
.handle = DEVGMCommands::ReloadConfig,
|
.handle = DEVGMCommands::ReloadConfig,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -353,7 +355,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ForceSaveCommand {
|
Command ForceSaveCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "forcesave", "force-save" },
|
||||||
.handle = DEVGMCommands::ForceSave,
|
.handle = DEVGMCommands::ForceSave,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -362,7 +364,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command FreecamCommand {
|
Command FreecamCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "freecam" },
|
||||||
.handle = DEVGMCommands::Freecam,
|
.handle = DEVGMCommands::Freecam,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -371,7 +373,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command FreeMoneyCommand {
|
Command FreeMoneyCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "freemoney" },
|
||||||
.handle = DEVGMCommands::FreeMoney,
|
.handle = DEVGMCommands::FreeMoney,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -380,7 +382,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command GetNavmeshHeightCommand {
|
Command GetNavmeshHeightCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "getnavmeshheight" },
|
||||||
.handle = DEVGMCommands::GetNavmeshHeight,
|
.handle = DEVGMCommands::GetNavmeshHeight,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -389,7 +391,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command GiveUScoreCommand {
|
Command GiveUScoreCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "giveuscore" },
|
||||||
.handle = DEVGMCommands::GiveUScore,
|
.handle = DEVGMCommands::GiveUScore,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -398,7 +400,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command GmAddItemCommand {
|
Command GmAddItemCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "gmadditem", "give" },
|
||||||
.handle = DEVGMCommands::GmAddItem,
|
.handle = DEVGMCommands::GmAddItem,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -407,7 +409,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command InspectCommand {
|
Command InspectCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "inspect" },
|
||||||
.handle = DEVGMCommands::Inspect,
|
.handle = DEVGMCommands::Inspect,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -416,7 +418,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ListSpawnsCommand {
|
Command ListSpawnsCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "list-spawns", "listspawns" },
|
||||||
.handle = DEVGMCommands::ListSpawns,
|
.handle = DEVGMCommands::ListSpawns,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -425,7 +427,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command LocRowCommand {
|
Command LocRowCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "locrow" },
|
||||||
.handle = DEVGMCommands::LocRow,
|
.handle = DEVGMCommands::LocRow,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -434,7 +436,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command LookupCommand {
|
Command LookupCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "lookup" },
|
||||||
.handle = DEVGMCommands::Lookup,
|
.handle = DEVGMCommands::Lookup,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -443,7 +445,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command PlayAnimationCommand {
|
Command PlayAnimationCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "playanimation", "playanim" },
|
||||||
.handle = DEVGMCommands::PlayAnimation,
|
.handle = DEVGMCommands::PlayAnimation,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -452,7 +454,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command PlayEffectCommand {
|
Command PlayEffectCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "playeffect" },
|
||||||
.handle = DEVGMCommands::PlayEffect,
|
.handle = DEVGMCommands::PlayEffect,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -461,7 +463,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command PlayLvlFxCommand {
|
Command PlayLvlFxCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "playlvlfx" },
|
||||||
.handle = DEVGMCommands::PlayLvlFx,
|
.handle = DEVGMCommands::PlayLvlFx,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -470,7 +472,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command PlayRebuildFxCommand {
|
Command PlayRebuildFxCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "playrebuildfx" },
|
||||||
.handle = DEVGMCommands::PlayRebuildFx,
|
.handle = DEVGMCommands::PlayRebuildFx,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -479,7 +481,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command PosCommand {
|
Command PosCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "pos" },
|
||||||
.handle = DEVGMCommands::Pos,
|
.handle = DEVGMCommands::Pos,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -488,7 +490,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command RefillStatsCommand {
|
Command RefillStatsCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "refillstats" },
|
||||||
.handle = DEVGMCommands::RefillStats,
|
.handle = DEVGMCommands::RefillStats,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -497,7 +499,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ReforgeCommand {
|
Command ReforgeCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "reforge" },
|
||||||
.handle = DEVGMCommands::Reforge,
|
.handle = DEVGMCommands::Reforge,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -506,7 +508,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ResetMissionCommand {
|
Command ResetMissionCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "resetmission" },
|
||||||
.handle = DEVGMCommands::ResetMission,
|
.handle = DEVGMCommands::ResetMission,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -515,7 +517,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command RotCommand {
|
Command RotCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "rot" },
|
||||||
.handle = DEVGMCommands::Rot,
|
.handle = DEVGMCommands::Rot,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -524,7 +526,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command RunMacroCommand {
|
Command RunMacroCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "runmacro" },
|
||||||
.handle = DEVGMCommands::RunMacro,
|
.handle = DEVGMCommands::RunMacro,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -533,7 +535,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetControlSchemeCommand {
|
Command SetControlSchemeCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setcontrolscheme" },
|
||||||
.handle = DEVGMCommands::SetControlScheme,
|
.handle = DEVGMCommands::SetControlScheme,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -542,7 +544,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetCurrencyCommand {
|
Command SetCurrencyCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setcurrency" },
|
||||||
.handle = DEVGMCommands::SetCurrency,
|
.handle = DEVGMCommands::SetCurrency,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -551,7 +553,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetFlagCommand {
|
Command SetFlagCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setflag" },
|
||||||
.handle = DEVGMCommands::SetFlag,
|
.handle = DEVGMCommands::SetFlag,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -560,7 +562,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetInventorySizeCommand {
|
Command SetInventorySizeCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setinventorysize" },
|
||||||
.handle = DEVGMCommands::SetInventorySize,
|
.handle = DEVGMCommands::SetInventorySize,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -569,7 +571,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetUiStateCommand {
|
Command SetUiStateCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setuistate" },
|
||||||
.handle = DEVGMCommands::SetUiState,
|
.handle = DEVGMCommands::SetUiState,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -578,7 +580,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SpawnCommand {
|
Command SpawnCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "spawn" },
|
||||||
.handle = DEVGMCommands::Spawn,
|
.handle = DEVGMCommands::Spawn,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -587,7 +589,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SpawnGroupCommand {
|
Command SpawnGroupCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "spawngroup" },
|
||||||
.handle = DEVGMCommands::SpawnGroup,
|
.handle = DEVGMCommands::SpawnGroup,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -596,7 +598,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SpeedBoostCommand {
|
Command SpeedBoostCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "speedboost" },
|
||||||
.handle = DEVGMCommands::SpeedBoost,
|
.handle = DEVGMCommands::SpeedBoost,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -605,7 +607,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command StartCelebrationCommand {
|
Command StartCelebrationCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "startcelebration" },
|
||||||
.handle = DEVGMCommands::StartCelebration,
|
.handle = DEVGMCommands::StartCelebration,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -614,7 +616,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command StopEffectCommand {
|
Command StopEffectCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "stopeffect" },
|
||||||
.handle = DEVGMCommands::StopEffect,
|
.handle = DEVGMCommands::StopEffect,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -623,7 +625,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command ToggleCommand {
|
Command ToggleCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "toggle" },
|
||||||
.handle = DEVGMCommands::Toggle,
|
.handle = DEVGMCommands::Toggle,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -632,7 +634,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command TpAllCommand {
|
Command TpAllCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "tpall" },
|
||||||
.handle = DEVGMCommands::TpAll,
|
.handle = DEVGMCommands::TpAll,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -641,7 +643,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command TriggerSpawnerCommand {
|
Command TriggerSpawnerCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "triggerspawner" },
|
||||||
.handle = DEVGMCommands::TriggerSpawner,
|
.handle = DEVGMCommands::TriggerSpawner,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -650,7 +652,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command UnlockEmoteCommand {
|
Command UnlockEmoteCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "unlock-emote", "unlockemote" },
|
||||||
.handle = DEVGMCommands::UnlockEmote,
|
.handle = DEVGMCommands::UnlockEmote,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -659,7 +661,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetLevelCommand {
|
Command SetLevelCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setlevel" },
|
||||||
.handle = DEVGMCommands::SetLevel,
|
.handle = DEVGMCommands::SetLevel,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -668,7 +670,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetSkillSlotCommand {
|
Command SetSkillSlotCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setskillslot" },
|
||||||
.handle = DEVGMCommands::SetSkillSlot,
|
.handle = DEVGMCommands::SetSkillSlot,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -677,7 +679,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetFactionCommand {
|
Command SetFactionCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setfaction" },
|
||||||
.handle = DEVGMCommands::SetFaction,
|
.handle = DEVGMCommands::SetFaction,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -686,7 +688,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command AddFactionCommand {
|
Command AddFactionCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "addfaction" },
|
||||||
.handle = DEVGMCommands::AddFaction,
|
.handle = DEVGMCommands::AddFaction,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -695,7 +697,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command GetFactionsCommand {
|
Command GetFactionsCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "getfactions" },
|
||||||
.handle = DEVGMCommands::GetFactions,
|
.handle = DEVGMCommands::GetFactions,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -704,7 +706,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command SetRewardCodeCommand {
|
Command SetRewardCodeCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "setrewardcode" },
|
||||||
.handle = DEVGMCommands::SetRewardCode,
|
.handle = DEVGMCommands::SetRewardCode,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -713,7 +715,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command CrashCommand {
|
Command CrashCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "crash", "pumpkin" },
|
||||||
.handle = DEVGMCommands::Crash,
|
.handle = DEVGMCommands::Crash,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -722,7 +724,7 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command RollLootCommand {
|
Command RollLootCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "rollloot", "roll-loot" },
|
||||||
.handle = DEVGMCommands::RollLoot,
|
.handle = DEVGMCommands::RollLoot,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
@ -731,92 +733,123 @@ void SlashCommandHandler::Startup() {
|
|||||||
Command CastSkillCommand {
|
Command CastSkillCommand {
|
||||||
.help = "",
|
.help = "",
|
||||||
.info = "",
|
.info = "",
|
||||||
.aliases = { "" },
|
.aliases = { "castskill" },
|
||||||
.handle = DEVGMCommands::CastSkill,
|
.handle = DEVGMCommands::CastSkill,
|
||||||
.requiredLevel = eGameMasterLevel::DEVELOPER
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
RegisterCommand(CastSkillCommand);
|
RegisterCommand(CastSkillCommand);
|
||||||
|
|
||||||
|
Command DeleteInvenCommand {
|
||||||
|
.help = "",
|
||||||
|
.info = "",
|
||||||
|
.aliases = { "deleteinven" },
|
||||||
|
.handle = DEVGMCommands::CastSkill,
|
||||||
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
|
};
|
||||||
|
RegisterCommand(DeleteInvenCommand);
|
||||||
|
|
||||||
// Register Greater Than Zero Commands
|
// Register Greater Than Zero Commands
|
||||||
|
|
||||||
Command KickCommand {
|
Command KickCommand {
|
||||||
.help = "",
|
.help = "Kicks the player off the server",
|
||||||
.info = "",
|
.info = "Kicks the player off the server",
|
||||||
.aliases = { "" },
|
.aliases = { "kick" },
|
||||||
.handle = GMGreaterThanZeroCommands::Kick,
|
.handle = GMGreaterThanZeroCommands::Kick,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::JUNIOR_MODERATOR
|
||||||
};
|
};
|
||||||
|
RegisterCommand(KickCommand);
|
||||||
|
|
||||||
Command MailItemCommand {
|
Command MailItemCommand {
|
||||||
.help = "",
|
.help = "Mails an item to the given player",
|
||||||
.info = "",
|
.info = "Mails an item to the given player. The mailed item has predetermined content. The sender name is set to \"Darkflame Universe\". The title of the message is \"Lost item\". The body of the message is \"This is a replacement item for one you lost\".",
|
||||||
.aliases = { "" },
|
.aliases = { "mailitem" },
|
||||||
.handle = GMGreaterThanZeroCommands::MailItem,
|
.handle = GMGreaterThanZeroCommands::MailItem,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::MODERATOR
|
||||||
};
|
};
|
||||||
|
RegisterCommand(MailItemCommand);
|
||||||
|
|
||||||
Command BanCommand {
|
Command BanCommand {
|
||||||
.help = "",
|
.help = "Bans a user from the server",
|
||||||
.info = "",
|
.info = "Bans a user from the server",
|
||||||
.aliases = { "" },
|
.aliases = { "ban" },
|
||||||
.handle = GMGreaterThanZeroCommands::Ban,
|
.handle = GMGreaterThanZeroCommands::Ban,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::SENIOR_MODERATOR
|
||||||
};
|
};
|
||||||
|
RegisterCommand(BanCommand);
|
||||||
|
|
||||||
Command ApprovePropertyCommand {
|
Command ApprovePropertyCommand {
|
||||||
.help = "",
|
.help = "Approves a property",
|
||||||
.info = "",
|
.info = "Approves the property the player is currently visiting",
|
||||||
.aliases = { "" },
|
.aliases = { "approveproperty" },
|
||||||
.handle = GMGreaterThanZeroCommands::ApproveProperty,
|
.handle = GMGreaterThanZeroCommands::ApproveProperty,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::LEAD_MODERATOR
|
||||||
};
|
};
|
||||||
|
RegisterCommand(ApprovePropertyCommand);
|
||||||
|
|
||||||
Command MuteCommand {
|
Command MuteCommand {
|
||||||
.help = "",
|
.help = "Mute a player",
|
||||||
.info = "",
|
.info = "Mute player for the given amount of time. If no time is given, the mute is indefinite.",
|
||||||
.aliases = { "" },
|
.aliases = { "mute" },
|
||||||
.handle = GMGreaterThanZeroCommands::Mute,
|
.handle = GMGreaterThanZeroCommands::Mute,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::JUNIOR_DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(MuteCommand);
|
||||||
|
|
||||||
Command FlyCommand {
|
Command FlyCommand {
|
||||||
.help = "",
|
.help = "Toggle flying",
|
||||||
.info = "",
|
.info = "Toggles your flying state with an optional parameter for the speed scale.",
|
||||||
.aliases = { "" },
|
.aliases = { "fly" },
|
||||||
.handle = GMGreaterThanZeroCommands::Fly,
|
.handle = GMGreaterThanZeroCommands::Fly,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(FlyCommand);
|
||||||
|
|
||||||
Command AttackImmuneCommand {
|
Command AttackImmuneCommand {
|
||||||
.help = "",
|
.help = "Make yourself immune to attacks",
|
||||||
.info = "",
|
.info = "Sets the character's immunity to basic attacks state, where value can be one of \"1\", to make yourself immune to basic attack damage, or \"0\" to undo",
|
||||||
.aliases = { "" },
|
.aliases = { "attackimmune" },
|
||||||
.handle = GMGreaterThanZeroCommands::AttackImmune,
|
.handle = GMGreaterThanZeroCommands::AttackImmune,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(AttackImmuneCommand);
|
||||||
|
|
||||||
Command GmImmuneCommand {
|
Command GmImmuneCommand {
|
||||||
.help = "",
|
.help = "Sets the character's GMImmune state",
|
||||||
.info = "",
|
.info = "Sets the character's GMImmune state, where value can be one of \"1\", to make yourself immune to damage, or \"0\" to undo",
|
||||||
.aliases = { "" },
|
.aliases = { "gmimmune" },
|
||||||
.handle = GMGreaterThanZeroCommands::GmImmune,
|
.handle = GMGreaterThanZeroCommands::GmImmune,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(GmImmuneCommand);
|
||||||
|
|
||||||
Command GmInvisCommand {
|
Command GmInvisCommand {
|
||||||
.help = "",
|
.help = "Toggles invisibility for the character",
|
||||||
.info = "",
|
.info = "Toggles invisibility for the character, though it's currently a bit buggy. Requires nonzero GM Level for the character, but the account must have a GM level of 8",
|
||||||
.aliases = { "" },
|
.aliases = { "gminvis" },
|
||||||
.handle = GMGreaterThanZeroCommands::GmInvis,
|
.handle = GMGreaterThanZeroCommands::GmInvis,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(GmInvisCommand);
|
||||||
|
|
||||||
Command SetNameCommand {
|
Command SetNameCommand {
|
||||||
.help = "",
|
|
||||||
.info = "",
|
.help = "Sets a temporary name for your player",
|
||||||
.aliases = { "" },
|
.info = "Sets a temporary name for your player. The name resets when you log out",
|
||||||
|
.aliases = { "setname" },
|
||||||
.handle = GMGreaterThanZeroCommands::SetName,
|
.handle = GMGreaterThanZeroCommands::SetName,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(SetNameCommand);
|
||||||
|
|
||||||
Command TitleCommand {
|
Command TitleCommand {
|
||||||
.help = "",
|
.help = "Give your character a title",
|
||||||
.info = "",
|
.info = "Temporarily appends your player's name with \" - <title>\". This resets when you log out",
|
||||||
.aliases = { "" },
|
.aliases = { "title" },
|
||||||
.handle = GMGreaterThanZeroCommands::Title,
|
.handle = GMGreaterThanZeroCommands::Title,
|
||||||
.requiredLevel = eGameMasterLevel::MODERATOR
|
.requiredLevel = eGameMasterLevel::DEVELOPER
|
||||||
};
|
};
|
||||||
|
RegisterCommand(TitleCommand);
|
||||||
|
|
||||||
|
|
||||||
// Register GM Zero Commands
|
// Register GM Zero Commands
|
||||||
Command HelpCommand{
|
Command HelpCommand{
|
||||||
@ -829,95 +862,113 @@ void SlashCommandHandler::Startup() {
|
|||||||
RegisterCommand(HelpCommand);
|
RegisterCommand(HelpCommand);
|
||||||
|
|
||||||
Command CreditsCommand {
|
Command CreditsCommand {
|
||||||
.help = "",
|
.help = "Displays DLU Credits",
|
||||||
.info = "",
|
.info = "Displays the names of the people behind Darkflame Universe.",
|
||||||
.aliases = { "" },
|
.aliases = { "credits" },
|
||||||
.handle = GMZeroCommands::Credits,
|
.handle = GMZeroCommands::Credits,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(CreditsCommand);
|
RegisterCommand(CreditsCommand);
|
||||||
|
|
||||||
Command InfoCommand {
|
Command InfoCommand {
|
||||||
.help = "",
|
.help = "Displays server info",
|
||||||
.info = "",
|
.info = "Displays server info to the user, including where to find the server's source code",
|
||||||
.aliases = { "" },
|
.aliases = { "info" },
|
||||||
.handle = GMZeroCommands::Info,
|
.handle = GMZeroCommands::Info,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(InfoCommand);
|
RegisterCommand(InfoCommand);
|
||||||
|
|
||||||
Command DieCommand {
|
Command DieCommand {
|
||||||
.help = "",
|
.help = "Smashes the player",
|
||||||
.info = "",
|
.info = "Smashes the player as if they were killed by something",
|
||||||
.aliases = { "" },
|
.aliases = { "die" },
|
||||||
.handle = GMZeroCommands::Die,
|
.handle = GMZeroCommands::Die,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(DieCommand);
|
RegisterCommand(DieCommand);
|
||||||
|
|
||||||
Command PingCommand {
|
Command PingCommand {
|
||||||
.help = "",
|
.help = "Displays your average ping.",
|
||||||
.info = "",
|
.info = "Displays your average ping. If the `-l` flag is used, the latest ping is displayed.",
|
||||||
.aliases = { "" },
|
.aliases = { "ping" },
|
||||||
.handle = GMZeroCommands::Ping,
|
.handle = GMZeroCommands::Ping,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(PingCommand);
|
RegisterCommand(PingCommand);
|
||||||
|
|
||||||
Command PvpCommand {
|
Command PvpCommand {
|
||||||
.help = "",
|
.help = "Toggle your PVP flag",
|
||||||
.info = "",
|
.info = "Toggle your PVP flag",
|
||||||
.aliases = { "" },
|
.aliases = { "pvp" },
|
||||||
.handle = GMZeroCommands::Pvp,
|
.handle = GMZeroCommands::Pvp,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(PvpCommand);
|
RegisterCommand(PvpCommand);
|
||||||
|
|
||||||
Command RequestMailCountCommand {
|
Command RequestMailCountCommand {
|
||||||
.help = "",
|
.help = "Gets the players mail count",
|
||||||
.info = "",
|
.info = "Sends notification with number of unread messages in the player's mailbox",
|
||||||
.aliases = { "" },
|
.aliases = { "requestmailcount" },
|
||||||
.handle = GMZeroCommands::RequestMailCount,
|
.handle = GMZeroCommands::RequestMailCount,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(RequestMailCountCommand);
|
RegisterCommand(RequestMailCountCommand);
|
||||||
|
|
||||||
Command WhoCommand {
|
Command WhoCommand {
|
||||||
.help = "",
|
.help = "Displays all players on the instance",
|
||||||
.info = "",
|
.info = "Displays all players on the instance",
|
||||||
.aliases = { "" },
|
.aliases = { "who" },
|
||||||
.handle = GMZeroCommands::Who,
|
.handle = GMZeroCommands::Who,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(WhoCommand);
|
RegisterCommand(WhoCommand);
|
||||||
|
|
||||||
Command FixStatsCommand {
|
Command FixStatsCommand {
|
||||||
.help = "",
|
.help = "Resets skills, buffs, and destroyables",
|
||||||
.info = "",
|
.info = "Resets skills, buffs, and destroyables",
|
||||||
.aliases = { "" },
|
.aliases = { "fix-stats" },
|
||||||
.handle = GMZeroCommands::FixStats,
|
.handle = GMZeroCommands::FixStats,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(FixStatsCommand);
|
RegisterCommand(FixStatsCommand);
|
||||||
|
|
||||||
Command JoinCommand {
|
Command JoinCommand {
|
||||||
.help = "",
|
.help = "Join a private zone",
|
||||||
.info = "",
|
.info = "Join a private zone with given password",
|
||||||
.aliases = { "" },
|
.aliases = { "join" },
|
||||||
.handle = GMZeroCommands::Join,
|
.handle = GMZeroCommands::Join,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(JoinCommand);
|
RegisterCommand(JoinCommand);
|
||||||
|
|
||||||
Command LeaveZoneCommand {
|
Command LeaveZoneCommand {
|
||||||
.help = "",
|
.help = "Leave an instanced zone",
|
||||||
.info = "",
|
.info = "If you are in an instanced zone, transfers you to the closest main world. For example, if you are in an instance of Avant Gardens Survival or the Spider Queen Battle, you are sent to Avant Gardens. If you are in the Battle of Nimbus Station, you are sent to Nimbus Station.",
|
||||||
.aliases = { "" },
|
.aliases = { "leave-zone", "leavezone" },
|
||||||
.handle = GMZeroCommands::LeaveZone,
|
.handle = GMZeroCommands::LeaveZone,
|
||||||
.requiredLevel = eGameMasterLevel::CIVILIAN
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
};
|
};
|
||||||
RegisterCommand(LeaveZoneCommand);
|
RegisterCommand(LeaveZoneCommand);
|
||||||
|
|
||||||
|
Command ResurrectCommand {
|
||||||
|
.help = "Resurrects the player",
|
||||||
|
.info = "Resurrects the player",
|
||||||
|
.aliases = { "resurrect" },
|
||||||
|
.handle = GMZeroCommands::Resurrect,
|
||||||
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
|
};
|
||||||
|
RegisterCommand(ResurrectCommand);
|
||||||
|
|
||||||
|
Command InstanceInfoCommand {
|
||||||
|
.help = "",
|
||||||
|
.info = "",
|
||||||
|
.aliases = { "instanceinfo" },
|
||||||
|
.handle = GMZeroCommands::InstanceInfo,
|
||||||
|
.requiredLevel = eGameMasterLevel::CIVILIAN
|
||||||
|
};
|
||||||
|
RegisterCommand(InstanceInfoCommand);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlashCommandHandler::HandleChatCommand(const std::u16string& chat, Entity* entity, const SystemAddress& sysAddr) {
|
void SlashCommandHandler::HandleChatCommand(const std::u16string& chat, Entity* entity, const SystemAddress& sysAddr) {
|
||||||
@ -931,7 +982,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& chat, Entity*
|
|||||||
|
|
||||||
if (RegisteredCommands.contains(command)) {
|
if (RegisteredCommands.contains(command)) {
|
||||||
if (entity->GetGMLevel() >= RegisteredCommands[command].requiredLevel) {
|
if (entity->GetGMLevel() >= RegisteredCommands[command].requiredLevel) {
|
||||||
// Database::Get()->InsertSlashCommandUsage(entity->GetObjectID(), chatCommand);
|
Database::Get()->InsertSlashCommandUsage(entity->GetObjectID(), input);
|
||||||
RegisteredCommands[command].handle(entity, sysAddr, args);
|
RegisteredCommands[command].handle(entity, sysAddr, args);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@ -954,11 +1005,11 @@ namespace GMZeroCommands {
|
|||||||
void Help(Entity* entity, const SystemAddress& sysAddr, const std::string args) {
|
void Help(Entity* entity, const SystemAddress& sysAddr, const std::string args) {
|
||||||
if (args.empty()) {
|
if (args.empty()) {
|
||||||
std::ostringstream helpMessage;
|
std::ostringstream helpMessage;
|
||||||
helpMessage << "Commands:\n*";
|
helpMessage << "----- Commands -----\n*";
|
||||||
for (auto& command : CommandInfos) {
|
for (auto& command : CommandInfos) {
|
||||||
// TODO: Limit displaying commands based on GM level they require
|
// TODO: Limit displaying commands based on GM level they require
|
||||||
if (command.requiredLevel > entity->GetGMLevel()) continue;
|
if (command.requiredLevel > entity->GetGMLevel()) continue;
|
||||||
helpMessage << command.aliases[0] << ": " << command.help << "\n*";
|
helpMessage << "/" << command.aliases[0] << ": " << command.help << "\n*";
|
||||||
}
|
}
|
||||||
GameMessages::SendSlashCommandFeedbackText(entity, GeneralUtils::ASCIIToUTF16(helpMessage.str().substr(0, helpMessage.str().size() - 2)));
|
GameMessages::SendSlashCommandFeedbackText(entity, GeneralUtils::ASCIIToUTF16(helpMessage.str().substr(0, helpMessage.str().size() - 2)));
|
||||||
} else {
|
} else {
|
||||||
@ -968,7 +1019,7 @@ namespace GMZeroCommands {
|
|||||||
foundCommand = true;
|
foundCommand = true;
|
||||||
if (entity->GetGMLevel() >= command.requiredLevel) {
|
if (entity->GetGMLevel() >= command.requiredLevel) {
|
||||||
std::ostringstream commandDetails;
|
std::ostringstream commandDetails;
|
||||||
commandDetails << "Command: " << command.aliases[0] << "\n*";
|
commandDetails << "----- " << command.aliases[0] << " -----n*";
|
||||||
commandDetails << command.info << "\n*";
|
commandDetails << command.info << "\n*";
|
||||||
if (command.aliases.size() > 1) {
|
if (command.aliases.size() > 1) {
|
||||||
commandDetails << "Aliases: ";
|
commandDetails << "Aliases: ";
|
||||||
@ -2726,8 +2777,7 @@ namespace DEVGMCommands {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace GreaterThanZeroCommands {
|
namespace GMGreaterThanZeroCommands {
|
||||||
|
|
||||||
|
|
||||||
void Kick(Entity* entity, const SystemAddress& sysAddr, const std::string args) {
|
void Kick(Entity* entity, const SystemAddress& sysAddr, const std::string args) {
|
||||||
const auto splitArgs = GeneralUtils::SplitString(args, ' ');
|
const auto splitArgs = GeneralUtils::SplitString(args, ' ');
|
||||||
|
@ -17,7 +17,7 @@ struct Command {
|
|||||||
std::string info;
|
std::string info;
|
||||||
std::vector<std::string> aliases;
|
std::vector<std::string> aliases;
|
||||||
std::function<void(Entity*, const SystemAddress&,const std::string)> handle;
|
std::function<void(Entity*, const SystemAddress&,const std::string)> handle;
|
||||||
eGameMasterLevel requiredLevel = eGameMasterLevel::DEVELOPER;
|
eGameMasterLevel requiredLevel = eGameMasterLevel::OPERATOR;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace SlashCommandHandler {
|
namespace SlashCommandHandler {
|
||||||
@ -95,10 +95,10 @@ namespace DEVGMCommands {
|
|||||||
void AddFaction(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void AddFaction(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void GetFactions(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void GetFactions(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void SetRewardCode(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void SetRewardCode(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
|
|
||||||
void Crash(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void Crash(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void RollLoot(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void RollLoot(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void CastSkill(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void CastSkill(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
|
void DeleteInven(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace GMZeroCommands {
|
namespace GMZeroCommands {
|
||||||
@ -113,6 +113,8 @@ namespace GMZeroCommands {
|
|||||||
void FixStats(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void FixStats(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void Join(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void Join(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
void LeaveZone(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
void LeaveZone(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
|
void Resurrect(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
|
void InstanceInfo(Entity* entity, const SystemAddress& sysAddr, const std::string args);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace GMGreaterThanZeroCommands {
|
namespace GMGreaterThanZeroCommands {
|
||||||
|
Loading…
Reference in New Issue
Block a user