Creating ghost entities?

I was doing some testing on a new clean server and it appears this plugin is creating alot of ghost entities.

First I always thought it was the Kits plugin or ServerRewards but it didn't use them so the only plugin that could be doing it is this one.

Could you please review the code and see if entities are destroyed properly?

before:

09:15 [Info] Objects Statistics:
#1 - planner x 4806
#2 - birch_tiny_temp x 2474
#3 - orebonus_generic x 1905
#4 - douglas_fir_d x 1792
#5 - pine_d x 1792
#6 - keycard.entity x 1591
#7 - m92.entity x 1244
#8 - m39.entity x 1178
#9 - hemp-collectable x 978
#10 - stone-ore x 824
#11 - dead_log_a x 805
#12 - dead_log_c x 805
#13 - dead_log_b x 801
#14 - salvaged_sword.entity x 704
#15 - birch_small_temp x 696
#16 - birch_medium_temp x 683
#17 - birch_large_temp x 683
#18 - birch_big_temp x 681
#19 - american_beech_e_dead x 591
#20 - binocular.entity x 579
#21 - wood-collectable x 577
#22 - douglas_fir_c x 570
#23 - sulfur-ore x 541
#24 - metal-ore x 540
#25 - mushroom-cluster-5 x 512
#26 - lr300.entity x 511
#27 - crate_underwater_basic x 501
#28 - mushroom-cluster-6 x 487
#29 - oak_a_tundra x 479
#30 - birch_tiny_tundra x 479
#31 - birch_small_tundra x 478
#32 - flashlight.entity x 460
#33 - saddletest x 451
#34 - oak_e x 413
#35 - oak_f x 412
#36 - icepick_salvaged.entity x 411
#37 - axe_salvaged.entity x 391
#38 - douglas_fir_a x 373
#39 - pine_b x 373
#40 - douglas_fir_b x 373
#41 - pine_a x 372
#42 - pine_c x 372
#43 - flare.weapon x 370
#44 - smoke_grenade.weapon x 354
#45 - toolgun.entity x 352
#46 - metal-collectable x 345
#47 - american_beech_d x 332
#48 - stone-collectable x 332
#49 - american_beech_a x 331
#50 - sulfur-collectable x 330​

run cleanup:

09:15 [Warning] [Broken Items Cleaner] Removed 14632 broken entities and repaired 0

after:

09:15 [Info] Objects Statistics:
#1 - birch_tiny_temp x 2474
#2 - orebonus_generic x 1905
#3 - douglas_fir_d x 1792
#4 - pine_d x 1792
#5 - hemp-collectable x 1066
#6 - stone-ore x 824
#7 - dead_log_a x 805
#8 - dead_log_c x 805
#9 - dead_log_b x 801
#10 - birch_small_temp x 696
#11 - birch_medium_temp x 683
#12 - birch_large_temp x 683
#13 - birch_big_temp x 681
#14 - american_beech_e_dead x 591
#15 - wood-collectable x 578
#16 - douglas_fir_c x 570
#17 - mushroom-cluster-5 x 552
#18 - sulfur-ore x 541
#19 - metal-ore x 540
#20 - mushroom-cluster-6 x 533
#21 - crate_underwater_basic x 514
#22 - oak_a_tundra x 479
#23 - birch_tiny_tundra x 479
#24 - birch_small_tundra x 478
#25 - planner x 468
#26 - saddletest x 451
#27 - oak_e x 413
#28 - oak_f x 412
#29 - douglas_fir_a x 373
#30 - pine_b x 373
#31 - douglas_fir_b x 373
#32 - pine_a x 372
#33 - pine_c x 372
#34 - stone-collectable x 371
#35 - metal-collectable x 367
#36 - sulfur-collectable x 360
#37 - american_beech_d x 332
#38 - american_beech_a x 331
#39 - american_beech_b x 310
#40 - american_beech_a_dead x 310
#41 - american_beech_c x 310
#42 - american_beech_e x 310
#43 - oak_f_tundra x 282
#44 - workcart_fuel_storage x 280
#45 - american_beech_d_dead x 279
#46 - doormanipulator x 265
#47 - loot_barrel_1 x 251
#48 - tunneldweller x 232
#49 - loot_barrel_2 x 228
#50 - pressbutton_trainstairwell x 222


almost 15000 invisible broken ghost entities. Im the only player on the test server so it is probably due to server restarts and repopulating the loot containers

pretty sure it is this plugin because i use alot of m92s or m39s and keycards and all that in the crates

What is a flare.weapon entity? Because I cant find it in the list. I can only find normal "flare".

But I do have alot of flares in my mining loot containers so it could point out that this plugin is causing this