TF-EssentialsX/providers/BaseProviders/src/net/ess3/provider
pop4959 14c6c2a055
Fix spawner delay feature (#3239)
Closes #1332

The spawner delay feature has been broken in Essentials for as long as anyone can remember. The reasons for this are mentioned in the issue above.

This PR fixes this by changing the command to utilize new API for setting the minimum and maximum spawn delay on spawners. This API was added in 1.12.2, so all supported versions before that (1.8.8 thru 1.12.1) require NMS to function properly. I'm aware that Essentials avoids NMS for maintainability reasons, however that should not be of much concern here since all versions 1.12.2 and later are going to be using the Bukkit API. Hence, no NMS updates will be necessary.

Also let me know if you want the NMS code refactored somewhere else. I saw the net.ess3.nms packages, but I wasn't sure where this would fit into the organisation of that.

Tested on:
1.8.8, 1.9.4, 1.10.2, 1.11.2 (NMS)
1.12.2, 1.15.2 (Bukkit API)
2020-08-05 20:47:42 +01:00
..
providers Fix spawner delay feature (#3239) 2020-08-05 20:47:42 +01:00
PotionMetaProvider.java Provider Rework (#3407) 2020-06-24 22:00:59 +01:00
Provider.java Provider Rework (#3407) 2020-06-24 22:00:59 +01:00
ProviderListener.java Fix recipe command on Paper (#3404) 2020-07-01 15:19:42 -07:00
ServerStateProvider.java Provider Rework (#3407) 2020-06-24 22:00:59 +01:00
SpawnEggProvider.java Provider Rework (#3407) 2020-06-24 22:00:59 +01:00
SpawnerBlockProvider.java Fix spawner delay feature (#3239) 2020-08-05 20:47:42 +01:00
SpawnerItemProvider.java Fix spawner delay feature (#3239) 2020-08-05 20:47:42 +01:00