Commit Graph

69 Commits

Author SHA1 Message Date
tastybento
9ffe0c740a Refactor code to enable golem spawning. #180 2024-01-09 17:47:24 +09:00
tastybento
4323a1a53a Update to BentoBox 2.0.0 API
Check for multiple islands when the player joins.
2023-11-28 16:03:11 -08:00
tastybento
6b770d083e Fix tests. Use world#nearbyEntities method. 2023-04-15 12:15:14 -07:00
tastybento
eeafa239c4 Avoid using NumberUtils. Update dependencies. 2023-04-15 11:44:56 -07:00
tastybento
68f696a46c
Merge pull request #166 from emmanuelvlad/new-placeholders 2023-04-10 06:52:59 -07:00
evlad
97006d28c1 huge performance boost for entity limit 2022-11-07 02:05:09 +01:00
Piotr Skiba
989ebcba7b disable villagers breeding when limit is reached 2022-09-28 00:08:05 +02:00
evlad
f726492eae add new placeholders and BlockGrowEvent 2022-07-05 19:35:00 +02:00
BONNe
5fd461ddea
Add limits offsets to the GUI and Placeholder
Offsets were not added to the GUI and Placeholder value. Part of #159
2022-03-27 14:45:43 +03:00
BONNe
baa73b76a5
Merge pull request #160 from YellowZaki/develop
Turned into a Pladdon
2022-03-25 21:18:06 +02:00
YellowZaki
d7bff1df7d Turned into a Pladdon 2022-03-25 17:29:27 +01:00
tastybento
1a7d2b8f3e
Merge pull request #156 from YellowZaki/develop
Fixes Villager limit
2022-01-21 18:55:21 -08:00
tastybento
e8dffc76f5 Avoid NPE with ibc
https://github.com/BentoBoxWorld/Limits/issues/157
2022-01-21 18:53:45 -08:00
Alberto
fe0e935e14
Fixes Villager limit 2022-01-09 20:50:34 +01:00
tastybento
360ba0b2de Rework how offsets are used.
https://github.com/BentoBoxWorld/Upgrades/issues/40
https://github.com/BentoBoxWorld/Limits/issues/117
2022-01-02 16:31:02 -08:00
tastybento
d038269f8c Add getIsland method 2022-01-02 12:45:16 -08:00
tastybento
886c6c5fa5 Remove debug 2022-01-02 11:16:27 -08:00
tastybento
343d7bbbde Improved recount code. Should be accurate.
This uses the latest approach done by Level addon. This does not yet
include entity recounting!

https://github.com/BentoBoxWorld/Limits/issues/123
2021-12-26 15:52:56 -08:00
tastybento
4cff598aee Fix bugs in map keys and groups. Fix code smells. 2021-12-25 09:10:53 -08:00
tastybento
51408751a6 Code clean up. Java updates. 2021-12-22 14:37:10 -08:00
tastybento
0248c398f6 Enable Op or mod override for breeding. 2021-12-22 13:43:45 -08:00
tastybento
38aa99b2c7 Remove debug 2021-12-22 12:18:16 -08:00
tastybento
d6f12c29dc Prevent breeding using breeding event 2021-12-22 12:16:02 -08:00
tastybento
3f1465d6ef Fix NPEs 2021-12-22 10:11:59 -08:00
tastybento
14c38869df WIP try to use EntityBreedEvent to track breeding 2021-12-22 09:19:00 -08:00
tastybento
328a1a13f7 Added option to ignore the island center block from limits.
Should help with AOneBlock usage.
2021-10-17 14:48:35 -07:00
tastybento
76c582ba1d Added API to enable offset for limits. 2021-09-06 17:11:02 -07:00
JasonLiu2002
21986d3f2d Added chest/hopper placeholders, refactored getBlockCounts to be consistent, implemented getBlockCount 2021-07-29 01:38:45 -07:00
tastybento
4c5fdd6390 Remove async around entity call
https://github.com/BentoBoxWorld/Limits/issues/135
2021-07-24 14:13:44 -07:00
tastybento
6a2768e572 Adds setting option for async golum checking
https://github.com/BentoBoxWorld/Limits/issues/127
2021-05-03 16:22:42 -07:00
tastybento
f525ae80a5 Recalculate limits every time Limits GUI is shown. 2021-03-07 09:20:28 -08:00
tastybento
dc4efb2a0c Entity limiting was happening in BentoBox worlds not specified in config 2021-02-21 19:02:50 -08:00
tastybento
5e9a4326ba Only save if data has changed on shutdown. 2021-01-22 11:56:42 -08:00
tastybento
8ce7c3e631 Updated to BentoBox 1.15.4 API 2020-12-27 11:11:54 -08:00
tastybento
514f2158cc Remove Wither from async checking
The fake wither explosion was not convincing enough...

If we ever get an API to set the summoned wither state then this could
be put back in.
2020-12-22 09:40:09 -08:00
Baterka
90b5a65c62 Fixed https://github.com/BentoBoxWorld/Limits/issues/114 2020-11-24 15:43:37 +01:00
tastybento
81e4dbefc5 Remove duplication of code for event 2020-11-14 12:07:42 -08:00
tastybento
19565e90ff Added null checks 2020-11-14 12:02:48 -08:00
tastybento
c0c9e16b6c Added new event that fires for each perm
https://github.com/BentoBoxWorld/Limits/issues/111
2020-11-14 11:03:13 -08:00
YellowZaki
0f7f61c179 Count PISTON_HEAD and MOVING_PISTON 2020-10-28 14:25:36 +01:00
YellowZaki
88879f5638 Count PISTON_HEAD and MOVING_PISTON 2020-10-28 14:25:23 +01:00
tastybento
4f92611df0 Check for specific types and not classes
https://github.com/BentoBoxWorld/Limits/issues/105
2020-09-30 14:46:07 -07:00
tastybento
d0e7ec0d68 Adds tests for EntityLimitListener 2020-09-27 16:54:00 -07:00
tastybento
3b367407ae Fixes uncounting of blocks used by wither, golem or snowman making
https://github.com/BentoBoxWorld/Limits/issues/103
2020-09-20 09:07:35 -07:00
tastybento
0c107f2bab Temporarily not do async checked for entity spawns
https://github.com/BentoBoxWorld/Limits/issues/98
https://github.com/BentoBoxWorld/Limits/issues/100
2020-09-17 18:54:02 -07:00
tastybento
33d16d16e2 Add special handling for armor stands for jetsminions
https://github.com/BentoBoxWorld/Limits/issues/99
2020-09-12 07:42:46 -07:00
tastybento
1870a309f7 Handles golem, wither and snowman orientations
https://github.com/BentoBoxWorld/Limits/issues/97
2020-09-11 18:43:36 -07:00
tastybento
07101c72dc Possible fix for dupe exploits
https://github.com/BentoBoxWorld/Limits/issues/97
2020-09-10 19:19:49 -07:00
tastybento
d3a5c23cf0 Reworked entity limits to avoid glitching.
https://github.com/BentoBoxWorld/Limits/issues/95
2020-09-06 18:30:05 -07:00
tastybento
989143d218 Removed code smells. 2020-07-26 14:35:05 -07:00