From 740801bd96faa7075064237f2c059fc137378323 Mon Sep 17 00:00:00 2001 From: zontreck Date: Thu, 6 Mar 2025 09:36:38 -0700 Subject: [PATCH] Begin adding RTP Part of #2 --- AriasServerUtils/ASUModSystem.cs | 2 ++ AriasServerUtils/EventHandler.cs | 7 ++++++- AriasServerUtils/modinfo.json | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/AriasServerUtils/ASUModSystem.cs b/AriasServerUtils/ASUModSystem.cs index ed22f3b..0755aac 100644 --- a/AriasServerUtils/ASUModSystem.cs +++ b/AriasServerUtils/ASUModSystem.cs @@ -150,6 +150,8 @@ namespace AriasServerUtils api.ChatCommands.Create("warps").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithDescription("Lists all server warps").HandleWith(Events.HandleWarpList); api.ChatCommands.Create("back").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithDescription("Returns you to the last location you were at").HandleWith(Events.HandleBack); + + api.ChatCommands.Create("rtp").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithDescription("Seeks a position possibly thousands of blocks away to teleport to.").HandleWith(Events.HandleRTP); } diff --git a/AriasServerUtils/EventHandler.cs b/AriasServerUtils/EventHandler.cs index 4731723..1df0360 100644 --- a/AriasServerUtils/EventHandler.cs +++ b/AriasServerUtils/EventHandler.cs @@ -12,7 +12,7 @@ namespace AriasServerUtils { internal static TextCommandResult HandleASU(TextCommandCallingArgs args) { - return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:help", ServerUtilities.config.MaxHomes, ServerUtilities.config.AdminsBypassMaxHomes, ServerUtilities.config.MaxBackCache, string.Join(", ", new string[] { "setspawn", "spawn", "delspawn", "sethome", "home", "delhome", "homes", "restoreinv", "asu", "warp", "setwarp", "delwarp", "warps", "back" }))); + return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:help", ServerUtilities.config.MaxHomes, ServerUtilities.config.AdminsBypassMaxHomes, ServerUtilities.config.MaxBackCache, string.Join(", ", new string[] { "setspawn", "spawn", "delspawn", "sethome", "home", "delhome", "homes", "restoreinv", "asu", "warp", "setwarp", "delwarp", "warps", "back", "rtp" }))); } internal static TextCommandResult HandleBack(TextCommandCallingArgs args) @@ -39,6 +39,11 @@ namespace AriasServerUtils return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:rmspawn")); } + internal static TextCommandResult HandleRTP(TextCommandCallingArgs args) + { + return TextCommandResult.Success(); + } + internal static TextCommandResult HandleDelHome(TextCommandCallingArgs args) { string homeName = "default"; diff --git a/AriasServerUtils/modinfo.json b/AriasServerUtils/modinfo.json index 8b8b488..040407c 100644 --- a/AriasServerUtils/modinfo.json +++ b/AriasServerUtils/modinfo.json @@ -3,8 +3,8 @@ "modid": "ariasserverutils", "name": "Aria's Server Utilities", "authors": ["zontreck"], - "description": "A collection of server utilities\n\nBuild Date: 01-20-2025 @ 12:38 AM MST", - "version": "1.0.4-dev.1", + "description": "A collection of server utilities\n\nBuild Date: 03-06-2025 @ 9:36 AM MST", + "version": "1.0.4-dev.2", "dependencies": { "game": "" }