-Added new spawnClone function with an extra boolean parameter to check for spawn protection or not.
This commit is contained in:
c0508383 committed 2022-07-05 22:55:38 -07:00
1 parent 5fd3cc37ef
commit 43e41a0e95
3 files changed
+18 -1

No files matched your search

@@ -102,7 +102,7 @@ public class PacketHandlerServer{
if(type.needsNpc && npc == null){
}
else if(type.hasPermission() && !CustomNpcsPermissions.Instance.hasPermission(player, type.permission)){
else if(type.hasPermission() && !CustomNpcsPermissions.hasPermission(player, type.permission)){
//player doesnt have permission to do this
}
else if(item == null && (type == EnumPacketServer.ScriptPlayerGet || type == EnumPacketServer.ScriptPlayerSave || type == EnumPacketServer.ScriptNPCGet || type == EnumPacketServer.ScriptNPCSave || type == EnumPacketServer.ScriptForgeGet || type == EnumPacketServer.ScriptForgeSave))