Added a new Configuration Flag called "DisableBuild".
This commit is contained in:
parent
881ddd5543
commit
2fe906744f
3 changed files with 11 additions and 0 deletions
|
|
@ -336,6 +336,13 @@ namespace TShockAPI
|
|||
}
|
||||
if (type == 0 || type == 1)
|
||||
{
|
||||
if (ConfigurationManager.disableBuild)
|
||||
{
|
||||
if (!players[e.Msg.whoAmI].group.HasPermission("editspawn"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (ConfigurationManager.spawnProtect)
|
||||
{
|
||||
if (!players[e.Msg.whoAmI].group.HasPermission("editspawn"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue