Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
This commit is contained in:
commit
83013f66d4
2 changed files with 8 additions and 1 deletions
|
|
@ -1678,7 +1678,8 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
FileTools.SetupConfig();
|
FileTools.SetupConfig();
|
||||||
TShock.Groups.LoadPermisions();
|
TShock.Groups.LoadPermisions();
|
||||||
args.Player.SendMessage("Configuration & Permissions reload complete. Some changes may require server restart.");
|
TShock.Regions.ReloadAllRegions();
|
||||||
|
args.Player.SendMessage("Configuration, Permissions, and Regions reload complete. Some changes may require server restart.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ServerPassword(CommandArgs args)
|
private static void ServerPassword(CommandArgs args)
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,7 @@ namespace TShockAPI
|
||||||
{PacketTypes.PlayerSlot, HandlePlayerSlot},
|
{PacketTypes.PlayerSlot, HandlePlayerSlot},
|
||||||
{PacketTypes.TileGetSection, HandleGetSection},
|
{PacketTypes.TileGetSection, HandleGetSection},
|
||||||
{PacketTypes.UpdateNPCHome, UpdateNPCHome },
|
{PacketTypes.UpdateNPCHome, UpdateNPCHome },
|
||||||
|
{PacketTypes.PlayerAddBuff, HandlePlayerBuff},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -798,5 +799,10 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static bool HandlePlayerBuff(GetDataHandlerArgs args)
|
||||||
|
{
|
||||||
|
return !args.Player.Group.HasPermission(Permissions.ignoregriefdetection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue