Commit Graph

145 Commits

Author SHA1 Message Date
fullwall
f5dcdb8a1d Move settings around 2022-12-19 00:48:50 +08:00
fullwall
c68a7ad82f Null check shop name and make default shop name 2022-12-03 00:20:04 +08:00
fullwall
ebe1d27986 More robust way of checking EntityTransformEvent existence 2022-10-26 01:25:30 +08:00
fullwall
f6d7ebe809 Add STOP_ELYTRA PlayerAnimation, add a right click option to /npc shop to avoid having to make a command for it 2022-10-22 10:42:44 +08:00
fullwall
84e59407e4 Switch to entities unload event for new paper chunkloading system 2022-10-19 01:47:07 +08:00
fullwall
d11fd91d4a STOP_USE_ITEM not supported 2022-10-04 22:18:05 +08:00
fullwall
838aa3019b Minor changes 2022-10-02 23:10:23 +08:00
fullwall
12b60fcdf2 Fix EntityTransformEvent on old versions of minecraft 2022-09-13 00:56:03 +08:00
fullwall
b6563dba8d Block entity transformations if protected 2022-09-09 18:13:01 +08:00
fullwall
7bbe87be0b Move EntitiesLoadEvent to a separate file 2022-08-05 12:01:07 +08:00
fullwall
0afeb4792d Use EntitiesLoadEvent instead of ChunkLoadEvent, other minor fixes 2022-08-04 11:48:48 +08:00
fullwall
71bc177298 Try scanning the online players less 2022-07-25 15:53:34 +08:00
fullwall
acca94d911 Aggressively send scoreboard teams 2022-07-25 15:40:39 +08:00
fullwall
4dfac9c62d Remove team unregistering to ScoreboardTrait, add scoreboard-teams send ticks to assist with a possible scoreboard conflict 2022-07-13 20:09:21 +08:00
fullwall
35dd4078dd Fix double updating bee/bat/ghast AI 2022-07-05 19:13:31 +08:00
fullwall
53d8e96c8d Fix tadpoles, /npc goat, don't build unnecessary modules 2022-06-11 15:17:17 +08:00
fullwall
70c4ab6da8 Fix npcdamageentity event default cancelled 2022-06-05 15:12:16 +08:00
fullwall
6d1e848d89 Add debug when sending skins to players 2022-05-22 17:36:48 +08:00
fullwall
8292a952cd Fix /npc leashable 2022-05-08 21:57:15 +08:00
fullwall
4bf4dc0651 Add more info to debug messages to help with debugging 2022-03-14 04:25:42 +08:00
fullwall
88ab30840b Add debug to chunk load tracking, clarify charging logic in commands 2022-02-15 00:40:24 +08:00
fullwall
1ee92a07ea Implement cross-world teleporting for NPCs 2022-01-16 14:05:23 +08:00
fullwall
9904e034fd Make plugin disable hack more conservative 2021-07-21 18:51:04 +08:00
fullwall
bc3df49775 Work on plugin disable hack 2021-07-16 17:25:04 +08:00
fullwall
dfc48ec475 Make plugin disable hack more compatible 2021-07-15 19:41:03 +08:00
fullwall
c3a70e27ed Add workaround for spigot disable issue 2021-07-14 21:23:55 +08:00
Alex "mcmonkey" Goodwin
4dc123bb4b
Refactor scoreboard handling to use instant scoreboard application at spawn (#2544)
Full description in PR https://github.com/CitizensDev/Citizens2/pull/2544
2021-05-08 02:02:17 +08:00
fullwall
0e1e3586af Block protected NPCs from entering boats/minecarts 2021-04-22 22:22:46 +08:00
fullwall
c7789e5073 Remove extra NPCDespawnEvent 2021-04-05 16:38:10 +08:00
fullwall
54a66f33f3 Increase death animation ticks 2021-02-08 19:52:30 +08:00
fullwall
87a4c3f6c4 Fix memory leak 2020-12-28 11:04:14 +08:00
fullwall
b9e6418d52 Add new debug-chunk-loads setting 2020-12-24 19:03:21 +08:00
fullwall
aa136420c8 Make initial skin packet delay configurable 2020-12-24 19:00:35 +08:00
fullwall
7743763d3c Refactor common code, add missing condition 2020-11-14 18:41:21 +08:00
fullwall
8cdda471b9 Prevent concurrent modification issue with NPC spawning 2020-10-15 20:30:50 +08:00
fullwall
7dba144924 Use MONITOR priority for NPCSpawnEvent 2020-10-15 20:21:15 +08:00
fullwall
de74b21dd7 Fix up some messages with the waypoint editor 2020-10-13 19:51:53 +08:00
fullwall
c46362b02d Just use the slower but safer remove option 2020-10-12 23:04:12 +08:00
fullwall
9eb254215f Add preventing spawn debug 2020-10-12 22:49:09 +08:00
fullwall
675eaffad5 Prevent chunk load respawning with SpawnReason.PLUGIN 2020-10-12 22:24:44 +08:00
fullwall
12b796afa3 Add extra spawning debug 2020-10-12 21:58:26 +08:00
fullwall
1d314fba7a Append waypoints in the waypoint editor 2020-10-12 20:44:11 +08:00
fullwall
7450c4db45 Use new getOrAddTrait methodf 2020-09-14 17:57:58 +08:00
fullwall
5d2d6b7e4d Move marker code to sync 2020-09-10 20:48:18 +08:00
fullwall
7d10e25da5 Fix condition in entityportalevent 2020-08-30 17:00:33 +08:00
fullwall
21b2908e83 Remove team metadata 2020-08-09 13:04:46 +08:00
fullwall
9d50055d6f Only players can use scoreboard teams at the moment 2020-08-08 22:34:49 +08:00
fullwall
b14f0bac9c Redirect left/right clicks for hologram NPCs 2020-07-17 09:52:00 +08:00
fullwall
aaa45ea72e Paper seems to prefer despawning immediately 2020-07-10 15:13:53 +08:00
fullwall
d8b3b1c2c0 Add event to spawning debug 2020-06-28 17:36:24 +08:00
fullwall
d484432f83 Call left click event for vehicles 2020-05-13 13:23:59 +08:00
fullwall
0498353751 Update tablist after teleport 2020-05-12 22:13:22 +08:00
fullwall
10cea99af1 Disable milking protected NPC cows 2020-05-09 22:15:22 +08:00
Alex "mcmonkey" Goodwin
30f2dee4d7
Reduce potential for errors with packet teams (#2138)
* Reduce potential for errors with packet teams

Move scoreboard removal out of NMS to event method, and make more unique names

* remove unneeded isCancelled check
2020-05-05 18:20:56 +08:00
fullwall
071225bcb9 Revert previous change 2020-05-04 21:10:47 +08:00
fullwall
e6cf9b8b08 Clean up multiworld permission check for /npc tphere and don't respawn NPCs who were spawned for another reason 2020-05-04 16:21:34 +08:00
Alex "mcmonkey" Goodwin
2c24671ae3
simplify scoreboard patch to be 100% packet based (#2129)
* simplify scoreboard patch to be 100% packet based

which fixes edge case client errors

* fix edge cases of respawning and multinpc boards
2020-05-01 17:49:25 +08:00
fullwall
a2208f0d32 Minor style changes 2020-05-01 01:47:07 +08:00
Alex "mcmonkey" Goodwin
981ade8974
patch the majority of potential scoreboard packet errors (#2128) 2020-05-01 01:39:07 +08:00
Alex "mcmonkey" Goodwin
0e31ffb9f8
Implement packet-based scoreboard team enforcement (#2127)
* Implement packet-based scoreboard team enforcement

This should fix incompatibility with scoreboard plugins that break the main scoreboard

* impl to 1.8-1.12, move event logic, fix Setting usage

* pull setting if to outside of foreach loop

* fix return vs continue, minor opti as requested
2020-04-30 20:51:10 +08:00
fullwall
a360810e8d Pre-filter chunk unload entities 2020-04-22 20:25:17 +08:00
fullwall
655bdf0001 Change how NPC looking works so that body yaw matches head yaw after a tick 2020-04-21 22:24:13 +08:00
fullwall
06d8e92ff2 Cancel right click event if NPC has talked to someone 2020-04-20 21:44:50 +08:00
fullwall
09f7cbb9d5 Use chunk.getEntities on chunk unload 2020-04-13 21:56:48 +08:00
fullwall
275728e65b Fix cat lying down, remove dead code 2020-04-02 13:28:42 +08:00
fullwall
efc41dc492 Add cooldown option to /npc command 2020-02-22 12:57:03 +08:00
fullwall
d64876dd65 Temp test fix for spawning 2019-10-03 21:33:06 +08:00
fullwall
d72b6ef9e8 Change isSpawned API to use old valid logic. May fix spawning issues. 2019-10-03 13:14:20 +08:00
fullwall
c072a0887a Add a super simple command - /npc command. More features as required 2019-09-23 20:29:31 +08:00
fullwall
82e4f2dcea Delay processing of chunkloadevent 2019-07-07 14:44:08 +08:00
fullwall
d0b358a27c Change /npc mount permission, force chunk load on spawning due to chunk load 2019-06-12 21:06:06 +08:00
fullwall
e7cba79e1a Add a proper 1.14 solution for KEEP_CHUNKS_LOADED 2019-05-29 16:45:18 +08:00
fullwall
0e747889e7 Add wander delays 2019-05-26 15:40:54 +08:00
fullwall
b02bcbe38b Temp fix for chunk unloading problem 2019-04-29 15:58:07 +08:00
fullwall
ca8d9c41ea Work around chunk unload change 2019-04-28 20:45:38 +08:00
fullwall
cf874bd301 Temp fix for new 1.14 builds 2019-04-26 23:39:15 +08:00
fullwall
a0aaefcbea Fix compile error, add some wander waypoint API 2019-01-19 00:33:05 +08:00
Silthus
52b3902aca refactor(api): dynamically fetch the current default npc registry (#1672)
The api now allows setting the default NPC registry therefor commands
and listeners need to fetch the latest version of the NPCRegistry.

#1671
2019-01-19 00:18:43 +08:00
fullwall
92121c11e2 Trial portals 2018-10-01 18:36:12 +08:00
fullwall
505ef8a926 Use new spawnreason 2018-08-08 16:08:38 +08:00
Joseph Hirschfeld
56ef4c30ff Use World uuids instead of World names (#1551) 2018-08-08 07:50:08 +08:00
fullwall
dfb5b90b38 Preliminary 1.13 update - some known issues 2018-07-19 20:18:47 +08:00
fullwall
4c99dc0e7c Initial 1.8.8 support 2018-04-07 16:02:35 +08:00
fullwall
d7237dff4e Prevent potion effects for protected NPCs 2018-03-09 20:54:20 +08:00
fullwall
30ef5de8e0 Fix vehicle enter prevention not working properly 2018-03-09 19:29:59 +08:00
fullwall
1bc5a47ae8 Use stored location in EntityDeathEvent 2018-02-18 18:41:22 +08:00
fullwall
f33804609e Add -l flag to /npc spawn and add /npc metadata
Add /npc remove --owner
2018-01-01 14:41:10 +08:00
fullwall
8bd543c035 Don't look at invisible players in LookClose 2017-08-22 20:44:29 +08:00
fullwall
20306de9a3 Use contains for equipment editing commands 2017-08-22 20:30:29 +08:00
fullwall
f65d87c2db Fix some bug 2017-02-10 18:16:28 +08:00
fullwall
fc43e6aa12 Make VehicleEnterEvent check horse-type agnostic 2016-11-17 17:18:51 +08:00
fullwall
0189157400 First pass at 1.11 2016-11-17 15:53:41 +08:00
fullwall
0c833e2566 Increase player NPC skin update delay on join to possibly help Bungee 2016-10-02 21:32:10 +08:00
fullwall
73854b8107 Remove debugging code and make vehicle enter blocked for boats/minecarts if Controllable is not enabled 2016-08-19 21:47:44 +08:00
fullwall
449a7bd46a Convert to multi module 2016-08-03 19:19:24 +08:00