Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
This commit is contained in:
commit
481a34f722
1 changed files with 3 additions and 1 deletions
|
|
@ -59,9 +59,10 @@ namespace TShockAPI.DB
|
|||
if (File.Exists(file2))
|
||||
File.Delete(file2);
|
||||
File.Move(file, file2);
|
||||
com.CommandText = "SELECT *FROM ItemBans";
|
||||
}
|
||||
|
||||
com.CommandText = "SELECT * FROM ItemBans";
|
||||
|
||||
using (var reader = com.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
|
|
@ -108,6 +109,7 @@ namespace TShockAPI.DB
|
|||
|
||||
public bool ItemIsBanned(string name)
|
||||
{
|
||||
System.Console.WriteLine(name);
|
||||
if (ItemBans.Contains(name))
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue