From 3dde96c36909370b49a20c99cb7535f8a7ee6951 Mon Sep 17 00:00:00 2001 From: darkunderdog Date: Fri, 12 Aug 2011 06:48:15 -0500 Subject: [PATCH] Updated Command.cs - Adding /region name - hit a block and get the name of region you are in --- TShockAPI/Commands.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index d9495f94..6527001b 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1678,6 +1678,16 @@ namespace TShockAPI } switch (cmd) { + + case "name": + { + { + args.Player.SendMessage("Hit a block to get the name of the region", Color.Yellow); + args.Player.AwaitingName = true; + } + break; + } + case "set": { if (args.Parameters.Count == 2) @@ -1893,6 +1903,7 @@ namespace TShockAPI { args.Player.SendMessage("Avialable region commands:", Color.Green); args.Player.SendMessage("/region set [1/2] /region define [name] /region protect [name] [true/false]", Color.Yellow); + args.Player.SendMessage("/region name (provides region name)", Color.Yellow); args.Player.SendMessage("/region delete [name] /region clear (temporary region)", Color.Yellow); args.Player.SendMessage("/region allow [name] [regionname]", Color.Yellow); break;