Added Message Telling You The Region Name That Is Protected
This commit is contained in:
parent
8d2d41d0c9
commit
d34397ded6
1 changed files with 1 additions and 1 deletions
2
TShockAPI/GetDataHandlers.cs
Executable file → Normal file
2
TShockAPI/GetDataHandlers.cs
Executable file → Normal file
|
|
@ -331,7 +331,7 @@ namespace TShockAPI
|
|||
{
|
||||
if ((DateTime.UtcNow - args.Player.LastTileChangeNotify).TotalMilliseconds > 1000)
|
||||
{
|
||||
args.Player.SendMessage("Region protected from changes.", Color.Red);
|
||||
args.Player.SendMessage("Region Name: " + TShock.Regions.InAreaRegionName(x, y) + " protected from changes.", Color.Red);
|
||||
args.Player.LastTileChangeNotify = DateTime.UtcNow;
|
||||
}
|
||||
args.Player.SendTileSquare(x, y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue