Fixed regions
Added /convert
This commit is contained in:
parent
92d6e7b9fb
commit
e1cd87f487
3 changed files with 59 additions and 3 deletions
|
|
@ -167,6 +167,7 @@ namespace TShockAPI
|
|||
ChatCommands.Add(new Command("whisper", Whisper, "whisper", "w", "tell"));
|
||||
ChatCommands.Add(new Command("whisper", Reply, "reply", "r"));
|
||||
ChatCommands.Add(new Command("annoy", Annoy, "annoy"));
|
||||
ChatCommands.Add(new Command("cfg", ConvertWaR, "convert"));
|
||||
if (TShock.Config.DistributationAgent != "terraria-online")
|
||||
{
|
||||
ChatCommands.Add(new Command("kill", Kill, "kill"));
|
||||
|
|
@ -718,6 +719,22 @@ namespace TShockAPI
|
|||
|
||||
#region Server Maintenence Commands
|
||||
|
||||
public static void ConvertWaR(CommandArgs args)
|
||||
{
|
||||
if (args.Parameters.Count < 1)
|
||||
{
|
||||
args.Player.SendMessage("This command will dump all users from both Regions and Warps.");
|
||||
args.Player.SendMessage("This command will also change all Worlds to reference this WorldID.");
|
||||
args.Player.SendMessage("You must manually fix multi-world configurations.");
|
||||
args.Player.SendMessage("To confirm this: /convert yes");
|
||||
} else if (args.Parameters[0] == "yes")
|
||||
{
|
||||
TShock.Warps.ConvertDB();
|
||||
TShock.Regions.ConvertDB();
|
||||
args.Player.SendMessage("Convert complete. You need to re-allow users after they register.");
|
||||
}
|
||||
}
|
||||
|
||||
private static void Broadcast(CommandArgs args)
|
||||
{
|
||||
string message = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue