Commit Graph

18 Commits

Author SHA1 Message Date
Eric
c595b574ec Load/unload shops on chunk load/unload
This breaks shop limits, only loaded shops are counted at the moment
2020-01-21 20:00:08 +01:00
Eric
e82c28e5e8 Improve output of database errors 2019-07-22 16:07:30 +02:00
Eric
3730eb9703 Disable plugin when shops fail to load or reload 2019-06-16 15:58:02 +02:00
Eric
7032209ef7 Use queue and move event for shop updater 2018-08-19 23:07:58 +02:00
Eric
0a06a69e65 Fix shops not being shown after re-join 2018-07-29 14:20:16 +02:00
MineTheCube
3b9d26c079 Few improvements (#135)
* Fix: Few improvements

* Few improvements

* Hologram/item can wait after shop creation

* Compare worlds using their name

* Fix holograms display

* Changed version to 1.12.4

* Display shop after creation

* Fix requested changed

* Improve performance for simple hologram conditions
2017-08-10 17:02:24 +02:00
Eric
49d90da57a Added type parameter to callback 2017-07-30 13:54:48 +02:00
MineTheCube
08b298922e Re-add teleport listener and few minor changes 2017-07-27 01:02:21 +02:00
MineTheCube
67f12872a9 Performance improvements & shop updater refactor 2017-07-25 02:18:05 +02:00
Eric
c0415a1e27 Respawn shop item after teleport
Sometimes it disappeared after teleporting, because the chunk
has not been loaded yet. Now, after 15 ticks, the shop item will
be respawned after a teleport.
2017-06-17 13:38:07 +02:00
Eric
a78195037b Fixed high CPU usage
Closes #70
2017-06-15 12:25:42 +02:00
Eric
8e5b61c7a0 Reload shops when a world loads after initializing the shops 2017-04-10 20:05:31 +02:00
Eric
35028f2cab Fix shop visibility after respawn or world change 2017-04-10 16:19:41 +02:00
Eric
268d69c077 Only update shops if player has moved 2017-03-17 14:04:29 +01:00
Eric
3459a8ccba Stop shop updater when server is empty and restart on join 2017-02-08 21:49:23 +01:00
Eric
9583b77413 Fix NPE on player join
Fixes #77
2017-02-08 14:04:23 +01:00
Eric
c269cea82b Fixed holograms from being displayed too far away after teleporting 2017-01-21 13:30:39 +01:00
Eric
f6f8d93b85 Improve performance while updating shops
Inspired from the fork of @gonzalociocca but not exactly the same
Closes #39
2017-01-04 17:07:00 +01:00