Add usesundial permission | Fix #1247
This commit is contained in:
parent
69a9b0e29c
commit
111a0a2456
2 changed files with 9 additions and 0 deletions
|
|
@ -3514,6 +3514,12 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (type == 3 & !args.Player.HasPermission(Permissions.usesundial))
|
||||
{
|
||||
args.Player.SendErrorMessage("You do not have permission to use the Enchanted Sundial!");
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue