Add hooks for item/projectile/tile bans

This commit is contained in:
Ruby Rose 2017-06-07 15:32:40 +03:00
parent c841a86cdf
commit 81cb1381b4
4 changed files with 30 additions and 0 deletions

View file

@ -21,6 +21,7 @@ using System.Collections.Generic;
using System.Data;
using System.Linq;
using MySql.Data.MySqlClient;
using TShockAPI.Hooks;
namespace TShockAPI.DB
{
@ -205,6 +206,9 @@ namespace TShockAPI.DB
if (ply.HasPermission(Permissions.canusebannedtiles))
return true;
if (PlayerHooks.OnPlayerTilebanPermission(ply, this))
return true;
var cur = ply.Group;
var traversed = new List<Group>();
while (cur != null)