Commit Graph

415 Commits

Author SHA1 Message Date
Daniel Saukel
3a87fa172b Replace removed Commons methods with Bukkit methods 2020-06-28 01:06:59 +02:00
Daniel Saukel
5017f572b9 Set minimum distance trigger range to 2 2020-06-28 00:45:31 +02:00
Daniel Saukel
970527e903 Fix DistanceTrigger CME; resolvse #834 2020-06-28 00:44:56 +02:00
Daniel Saukel
e4ad18e4ba Fix /dxl rename NPE; resolves #752 2020-06-24 00:32:52 +02:00
Daniel Saukel
274b287195 Increase teleport listener priority 2020-06-24 00:32:08 +02:00
Daniel Saukel
74f3829282 Fix kickAllPlayers() NPE 2020-06-24 00:31:51 +02:00
Daniel Saukel
fbb08ac232 Fix /dxl edit before newly created map was saved; resolves #831 2020-06-23 22:55:31 +02:00
Daniel Saukel
4350eb8556 Fix mob sign NPE; resolves #807 2020-06-23 18:53:32 +02:00
Daniel Saukel
bd1d76b531 Fix command signs; resolves #827 2020-06-22 21:27:47 +02:00
Daniel Saukel
9a45ab0b6c Remove "done" lists from signs where possible 2020-06-22 19:56:08 +02:00
Daniel Saukel
df279742c6 Re-disable presence trigger after usage 2020-06-22 19:55:34 +02:00
Daniel Saukel
a32fa2ab46 Fix MFD end sign; resolves #814 2020-06-22 19:03:41 +02:00
Daniel Saukel
c84f3564d5 Allow for stricter movement check; resolves #802 2020-06-19 22:33:51 +02:00
Daniel Saukel
5cc5073062 Improve and fix DInstancePlayer#clearPlayerState(); resolves #809 2020-06-19 22:13:30 +02:00
Daniel Saukel
4ddfea0205 Remove isLobbyDisabled game rule 2020-06-19 21:50:37 +02:00
Daniel Saukel
b35000358f Fix legacy ProgressTrigger references 2020-06-19 21:41:32 +02:00
Daniel Saukel
74a879212c Add donors addon module 2020-06-19 00:46:03 +02:00
Daniel Saukel
3bab956591 Add presence trigger 2020-06-19 00:44:14 +02:00
Daniel Saukel
4ca4112ee8 Fix erroneous MFD config NPE; resolvse #811 2020-06-17 00:35:03 +02:00
Daniel Saukel
4e2ff51902 Fix class NPE 2020-06-17 00:14:51 +02:00
Daniel Saukel
527cff6aeb Fix interact / trigger sign problems; resolves #793 2020-06-17 00:14:41 +02:00
Daniel Saukel
c7240462c0 Fix CMD sign NPE; resolves #822 2020-06-17 00:14:09 +02:00
Goh Wei Wen
342dffb23e Add resetClassInventoryOnRespawn game rule 2020-06-15 13:39:09 +08:00
Daniel Saukel
1cd7758956
Merge pull request #816 from goweiwen/announce-command
Announce command
2020-06-15 00:29:23 +02:00
Goh Wei Wen
e09a6fa084 Fix overkill damage with death screen 2020-06-15 04:50:10 +08:00
Goh Wei Wen
d5a6d318e5 Fix announcement NPE 2020-06-15 00:22:33 +08:00
Goh Wei Wen
b45fd2101c Use Registry's Iterable implementation in announce command/task 2020-06-14 22:54:01 +08:00
Goh Wei Wen
3198855544 Unregister permissions on unload
Should allow the plugin to be reloaded
2020-06-14 22:06:21 +08:00
Goh Wei Wen
2e1339b8e8 Add /dxl announce command 2020-06-14 22:05:54 +08:00
Goh Wei Wen
0cd57d17f2 Disable announcer when interval <= 0 2020-06-14 22:05:48 +08:00
Daniel Saukel
3a810bda54 Add lobbyContainersEnabled config value; resolves #808 2020-06-02 21:41:28 +02:00
Daniel Saukel
c1ff83b43a Forgot to register command signs /o\ 2020-06-02 20:32:37 +02:00
Daniel Saukel
69ca72a205 Update Vault repo 2020-05-30 01:03:38 +02:00
Daniel Saukel
98f9f2c8de Use attached block for r triggers on wall signs; resolves #792 2020-05-10 18:02:52 +02:00
Daniel Saukel
4de94822b2 Fix PlayerInteractEvent NPE; resolves #789 2020-05-09 13:29:03 +02:00
Daniel Saukel
973bae2d25 Fix NPE 2020-05-08 22:16:19 +02:00
Daniel Saukel
35e083042a Minor trigger performance improvement 2020-05-06 23:57:45 +02:00
Daniel Saukel
f1176c2605 Add support for fence gates and trapdoors with door signs 2020-05-06 23:57:32 +02:00
Daniel Saukel
8e53261aa7 Reset k on mob signs when k reachs n 2020-05-06 20:20:19 +02:00
Daniel Saukel
3ed39ba92f Use fireTick game rule only in 1.13+; resolves #785 2020-05-03 20:19:19 +02:00
Daniel Saukel
ca8ded0788 Fix trigger signs; resolves #770 2020-05-02 01:59:29 +02:00
Daniel Saukel
8658f49730 Idiot-proof some player listeners against Citizens; resolves #772 2020-05-02 01:16:59 +02:00
Daniel Saukel
e46fb89349 Fix DungeonSign NPE 2020-05-02 01:05:17 +02:00
Daniel Saukel
ce7790f341 Fix "Removing entity while ticking!" bug 2020-05-02 00:57:27 +02:00
Daniel Saukel
2b1c09d0d7 Use static counter for dungeon world IDs 2020-05-02 00:46:20 +02:00
Daniel Saukel
df48257ef5 Fix #getDungeonMob() NPE 2020-05-02 00:45:58 +02:00
Daniel Saukel
612fb6828e Don't remove world config when world is saved 2020-05-01 15:27:21 +02:00
Daniel Saukel
db67bae75e Remove Paper check 2020-05-01 14:04:37 +02:00
Daniel Saukel
dec5aa6282 Delete edit worlds when no editors are left 2020-05-01 13:54:09 +02:00
Daniel Saukel
4c159c79a4 Teleport players to the positions where they were 2020-05-01 13:13:01 +02:00
Daniel Saukel
ed838d01da Fix world loading state in DEditWorld#save() 2020-05-01 13:12:42 +02:00
Daniel Saukel
41715f37b0 Don't save world that is already being saved 2020-05-01 00:36:18 +02:00
Daniel Saukel
bcc2dabdf9 Use world name instead of WeakReference 2020-05-01 00:22:46 +02:00
Daniel Saukel
1920f73859 Use world name instead of WeakReference 2020-05-01 00:20:44 +02:00
Daniel Saukel
f491c53e33 Use config editInstanceRemovalDelay values 2020-04-25 22:03:31 +02:00
Daniel Saukel
d62460bbe0 Delete game worlds when no players are left 2020-04-25 22:03:31 +02:00
Daniel Saukel
452b3b4700 Removing WorldUnloadTask 2020-04-25 22:03:30 +02:00
Daniel Saukel
95c7220f4a Add a delay between unloading and saving edit worlds (WIP) 2020-04-25 22:03:30 +02:00
Daniel Saukel
29d8f75568 Basic implementation of old events 2020-04-25 21:49:44 +02:00
Daniel Saukel
3a5d211506 Add new GamePlayerFinishEvent 2020-04-25 15:21:51 +02:00
Daniel Saukel
8f1dea9975 Add new GameWorldStartGameEvent 2020-04-25 15:12:42 +02:00
Daniel Saukel
fc86c5e999 Add new reward event 2020-04-25 15:09:19 +02:00
Daniel Saukel
462db92cb8 Add new group event API 2020-04-25 14:42:53 +02:00
Daniel Saukel
42cadaf7d1 Remove redundant non-API world events 2020-04-25 01:27:02 +02:00
Daniel Saukel
ec6df79657 Move DataReloadEvent to API 2020-04-25 00:38:54 +02:00
Daniel Saukel
cd6e6f045b Add DungeonMob events 2020-04-25 00:38:17 +02:00
Daniel Saukel
725b09e67d Add new reward event 2020-04-25 00:34:45 +02:00
Daniel Saukel
1cf83aaca6 Add new EditPlayer events 2020-04-25 00:33:42 +02:00
Daniel Saukel
a4a5874f39 Exclude unnecessary dependencies to improve compilation time 2020-04-19 00:13:51 +02:00
Daniel Saukel
932e46358c Update to Commons 6.1.4 2020-04-19 00:10:07 +02:00
Daniel Saukel
5245c46631 Fix removing of old edit worlds 2020-04-18 17:38:14 +02:00
Daniel Saukel
f56687f322 Fix enter command; also resolves #761 2020-04-18 17:32:52 +02:00
Daniel Saukel
88679e6a51 Fix redstone signs; resolves #761 2020-04-18 17:32:41 +02:00
Daniel Saukel
18ee02f169 Remove unnecessary check. null-safety should be ensured in Caliburn; resolves #689 2020-04-18 15:14:27 +02:00
Daniel Saukel
e6b7686f4d Wrap all world fields in WeakReferences 2020-04-17 23:22:30 +02:00
Daniel Saukel
964337815b Wrap all World fields in WeakReferences 2020-04-17 23:16:58 +02:00
Daniel Saukel
85bfacc9ec Improve timeframe requirement check message 2020-04-17 17:14:12 +02:00
Daniel Saukel
1cecd77d80 Add timeframe requirement; resolves #328 2020-04-17 16:41:35 +02:00
Daniel Saukel
243f9ab7c9 Add interactionBlacklist game rule; resolves #536 2020-04-17 01:07:25 +02:00
Daniel Saukel
3df0e333ee Add blockFadeDisabled game rule 2020-04-16 22:39:49 +02:00
Daniel Saukel
790e925e5c Add fireTick game rule 2020-04-16 22:17:16 +02:00
Daniel Saukel
f23e14cf01 Add escapeLocation and finishLocation game rules 2020-04-16 22:01:55 +02:00
Daniel Saukel
e62b081ca3 Fix script sign NPE 2020-04-15 17:56:40 +02:00
Daniel Saukel
cf362e664b Don't kill the game if one sign does not work 2020-04-15 17:56:25 +02:00
Daniel Saukel
6cd389c33e Fixed redstone trigger behavior 2020-04-14 21:13:26 +02:00
Daniel Saukel
89846991c1 Add requirement event API 2020-04-13 20:51:15 +02:00
Daniel Saukel
e80bb1f605 Use <br> instead of / as hologram line separator 2020-04-11 22:35:54 +02:00
Daniel Saukel
580db58348 Fix /dxl reload 2020-04-11 13:52:54 +02:00
Daniel Saukel
2ac2a3c22b Improve distance trigger performance 2020-04-11 13:52:46 +02:00
Daniel Saukel
2dbceef81a Fix permission requirement and API 2020-04-11 13:51:46 +02:00
Daniel Saukel
42cd5a1bf2 Fix ProjectileSource -> Entity CCE; resolves #735 2020-04-11 13:45:22 +02:00
Daniel Saukel
70929fbda5 Fix DungeonSign CME 2020-04-11 12:58:28 +02:00
Daniel Saukel
a3ff4c478c Fix portal requirements check 2020-04-11 02:19:59 +02:00
Daniel Saukel
15a2b86667 Overhaul requirements 2020-04-11 02:02:42 +02:00
Daniel Saukel
539d3da8a9 Fix MFD NPE 2020-04-10 15:49:56 +02:00
Daniel Saukel
05fbb76e79 Fix Dungeon#containsFloor() for SFDs. Resolves #751 2020-04-09 21:57:48 +02:00
Daniel Saukel
ff1c46a848 Fix windup / mob sign behavior 2020-04-08 01:03:02 +02:00
Daniel Saukel
a89ccbb830 Make distance triggers behavior more consistent with old behavior of signs 2020-04-07 21:05:33 +02:00
Daniel Saukel
b89c3078b5 Don't send ready sign message when sign has a trigger 2020-04-07 21:05:08 +02:00
Daniel Saukel
83ad5e24d9 Make use of Spigot's Bukkit#unloadWorld(World, false) fix 2020-04-07 02:23:40 +02:00
Daniel Saukel
93c786301a Add system property to bypass Paper async chunks check 2020-04-07 02:22:31 +02:00
Daniel Saukel
ef46da7e36 Add deathScreen game rule; resolves #734 2020-04-05 17:00:09 +02:00
Daniel Saukel
1928fafdfe Add foodLevel game rule 2020-04-05 15:08:03 +02:00
Daniel Saukel
dfda93f664 Fix portal rotation; resolves #668 2020-04-05 15:00:39 +02:00
Daniel Saukel
2bf5910222 Fix startIfElementsAtLeast not being saved; resolves #638 2020-04-04 17:56:30 +02:00
Daniel Saukel
12408d1e62 Add difficulty game rule; resolves #621 2020-04-04 01:11:22 +02:00
Daniel Saukel
38700a3c62 Fix possible memory leak; resolves #746 2020-04-03 20:46:25 +02:00
Daniel Saukel
cc2004b30b Fix possible memory leak 2020-04-03 19:50:22 +02:00
Daniel Saukel
ff1e615d6d Don't allow to start the server if 1.14+ Paper async chunk loading is enabled 2020-04-02 01:54:02 +02:00
Daniel Saukel
432976712c Send error message when a player joins a game world without a ready sign 2020-04-01 19:56:29 +02:00
Daniel Saukel
2574a06b87 Change API method naming to be more consistent 2020-04-01 16:21:14 +02:00
Daniel Saukel
4b222c914b Add option to disable group adapters 2020-04-01 16:11:36 +02:00
Daniel Saukel
b87f7ff7d2 Handle creation, deletion, joining and leaving at runtime 2020-04-01 15:31:19 +02:00
Daniel Saukel
9727137675 Add basic Parties group adapter 2020-03-29 17:15:22 +02:00
Daniel Saukel
74ede6d392 Fix reference to old edit world being kept 2020-03-25 16:52:20 +01:00
Daniel Saukel
37e07accd9 Remove unused features from cmd script 2020-03-24 15:52:38 +01:00
Daniel Saukel
83f01ba08f Remove unused features from cmd script 2020-03-23 21:24:34 +01:00
Daniel Saukel
110913b9c7 Fix global sign NPEs 2020-03-23 20:59:03 +01:00
Daniel Saukel
a92212c0e3 Fix /dxl play command 2020-03-23 20:58:36 +01:00
Daniel Saukel
9de40e2d1d (Re)add built-in command signs 2020-03-22 23:51:31 +01:00
Daniel Saukel
b4171e3479 Revert redstone signs functionality 2020-03-21 19:02:45 +01:00
Daniel Saukel
d6a2e38375 Fix mob signs 2020-03-21 18:17:35 +01:00
Daniel Saukel
f1e98aa66b Update sign colors in language files 2020-03-21 18:14:51 +01:00
Daniel Saukel
d3fc1cb8a0 Use the same green on every interact sign 2020-03-21 17:57:42 +01:00
Daniel Saukel
ed10a03629 Use messages game rule for hologram signs 2020-03-21 17:17:33 +01:00
Daniel Saukel
04ac3b3b58 Don't set signs to air on dungeon init that aren't initialized yet 2020-03-21 16:45:18 +01:00
Daniel Saukel
c4b2562d07 Use setToAir() method everywhere 2020-03-21 16:44:34 +01:00
Daniel Saukel
dede41827f Fix sign IOOB exception if line one length is small 2020-03-21 16:41:06 +01:00
Daniel Saukel
42e762911a Don't use Caliburn's Commons lib import 2020-03-21 16:40:25 +01:00
Daniel Saukel
2e26fe7d7c Remove... whatever this is 2020-03-20 21:09:53 +01:00
Daniel Saukel
56ef3dd202 Shift trigger logic to new sign categories 2020-03-20 21:09:36 +01:00
Daniel Saukel
82cb68c3b5 Consistent exception catching in BlockSign#activate() and #deactivate() 2020-03-20 18:47:52 +01:00
Daniel Saukel
f19417ceeb Start interaction sign IDs at 0 2020-03-20 18:47:27 +01:00
Daniel Saukel
d3e32f5893 Better script sign support 2020-03-20 18:44:26 +01:00
Daniel Saukel
0a3d559b39 Handle interval == 0 windups 2020-03-19 17:06:23 +01:00
Daniel Saukel
53cd13b0ec How did this happen? We're smarter than this! 2020-03-19 16:35:30 +01:00
Daniel Saukel
d0042949fc Fix loading game rules 2020-03-19 15:14:07 +01:00
Daniel Saukel
0212a865f8 Improve message signs 2020-03-18 19:37:41 +01:00
Daniel Saukel
3d19e30287 Readd trigger parser 2020-03-18 19:37:12 +01:00
Daniel Saukel
5d452db92d Use game rules from registry instead of default VALUES array 2020-03-18 19:36:51 +01:00
Daniel Saukel
929a87ac68 Fix potential dungeon game rule NPE 2020-03-18 19:33:06 +01:00
Daniel Saukel
dcc7d4e4fb Set MobSign runnable 2020-03-18 17:07:47 +01:00
Daniel Saukel
02c159e3df Fix title signs 2020-03-18 16:14:06 +01:00
Daniel Saukel
51cccb3afb Load and trigger signs correctly in games 2020-03-18 16:13:58 +01:00
Daniel Saukel
293dc75f0e More Container fixes 2020-03-18 16:13:29 +01:00
Daniel Saukel
2eb3ab6332 Fix NPE when player quits 2020-03-18 13:02:25 +01:00
Daniel Saukel
9a10bea264 Fix reward chest backwards compatibility 2020-03-18 01:15:32 +01:00
Daniel Saukel
bd91373a03 Make title signs use messages game rule 2020-03-18 01:13:15 +01:00
Daniel Saukel
c3528eff3d Fix legacy sign check 2020-03-18 01:12:53 +01:00
Daniel Saukel
8402311e6f Fix msg command 2020-03-18 01:12:37 +01:00