/world will show you world name and id.
Permission: cfg is required.
This commit is contained in:
parent
2603b942bb
commit
3934209a16
1 changed files with 7 additions and 0 deletions
|
|
@ -209,6 +209,7 @@ namespace TShockAPI
|
|||
add(Permissions.hardmode, StartHardMode, "hardmode");
|
||||
add(Permissions.hardmode, DisableHardMode, "stophardmode", "disablehardmode");
|
||||
add(Permissions.cfg, ServerInfo, "stats");
|
||||
add(Permissions.cfg, WorldInfo, "world");
|
||||
add(Permissions.converthardmode, ConvertCorruption, "convertcorruption");
|
||||
add(Permissions.converthardmode, ConvertHallow, "converthallow");
|
||||
}
|
||||
|
|
@ -678,6 +679,12 @@ namespace TShockAPI
|
|||
args.Player.SendMessage("Machine name: " + Environment.MachineName);
|
||||
}
|
||||
|
||||
public static void WorldInfo(CommandArgs args)
|
||||
{
|
||||
args.Player.SendMessage("World Name: " + Main.worldName);
|
||||
args.Player.SendMessage("World ID: " + Main.worldID);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Player Management Commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue