fullwall
12ffd56981
Add delay argument to /npc command and add a builder-style API for creating new commands
2020-04-30 21:15:24 +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
8109a90440
Fix saving of body vs head yaw
2020-04-30 19:11:56 +08:00
fullwall
32429f140d
Run clientside player ticking at a different time
2020-04-29 20:56:39 +08:00
fullwall
bbf3f281eb
Fix portal removal timing
2020-04-29 19:18:16 +08:00
fullwall
d5667e53f5
Use new API
2020-04-26 12:53:00 +08:00
fullwall
dc72f7526c
Support bungee /server command in Citizens command
2020-04-25 19:10:49 +08:00
fullwall
fe8eb4e85d
Change how npc looking works
2020-04-25 16:57:31 +08:00
fullwall
f9b0397cab
Add --eid option to /npc remove
2020-04-22 23:46:36 +08:00
fullwall
a360810e8d
Pre-filter chunk unload entities
2020-04-22 20:25:17 +08:00
fullwall
4bbe797120
QoL change for /npc glowing --color to enable if not previously enabled
2020-04-22 18:00:15 +08:00
fullwall
5e431462e0
Try to remove any previous wander goals
2020-04-22 00:27:25 +08:00
fullwall
000fc19a40
Clear PhTree before recalculation
2020-04-22 00:24:18 +08:00
fullwall
2383e8f551
Further reduce default controllable speed
2020-04-21 23:04:39 +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
0531fe859e
Implement new AI API for Minecraft 1.15.2, fix Squids
2020-04-20 17:38:56 +08:00
fullwall
725adb009f
Cast command cooldowns manually
2020-04-20 00:54:35 +08:00
fullwall
341f7b1990
Incorporate speed modifier into forward controllable speed and boost left/right speed
2020-04-19 18:07:49 +08:00
fullwall
0a8736b690
Add some basic javadoc to SkinTrait
2020-04-19 02:43:08 +08:00
fullwall
2c1ef04614
Migrate /npc skin properly and deprecate skinnable entity methods
2020-04-19 02:13:00 +08:00
fullwall
93af872e93
Ensure /npc skin works while not spawned
2020-04-19 02:09:46 +08:00
fullwall
80011eed41
Revamp SkinnableEntity into SkinTrait
2020-04-19 02:07:03 +08:00
fullwall
9090d1c69b
Fix lookclose target invalidation
2020-04-19 01:28:40 +08:00
fullwall
ecae2dbe8a
Make wander goal more random
2020-04-19 01:22:55 +08:00
fullwall
b546afa368
Better default skin name detection
2020-04-18 12:31:27 +08:00
fullwall
aaa6397a69
Add new API to avoid default skin fetching
2020-04-18 12:24:29 +08:00
fullwall
c63b6efdf7
Fix NPE in Enderman Equipper
2020-04-16 18:31:45 +08:00
fullwall
d13530ff49
Ensure commands run on main thread
2020-04-16 03:04:42 +08:00
fullwall
b26540619b
Merge branch 'master' of github.com:CitizensDev/Citizens2
2020-04-15 04:20:38 +08:00
fullwall
e288bd934c
Fix NPE in linear waypoint editor
2020-04-15 04:20:21 +08:00
Tom Miller
fe024923cf
We can optimize a significant portion of LookClose's findNewTarget method with some changes: ( #2103 )
...
-Build the list of all potential Players and THEN sort by distance. A good chunk of the method's time was spend sorting things it didn't need to.
-Second, reorder the player checks for best performance, where getNPC() is the cheapest check and isPluginVanished is the most expensive check.
In somewhat minimal testing, these changes almost dropped findNewTarget off of my profiling entirely
2020-04-14 01:57:20 +08:00
fullwall
09f7cbb9d5
Use chunk.getEntities on chunk unload
2020-04-13 21:56:48 +08:00
fullwall
14ebf26935
Try to avoid water more
2020-04-08 23:59:49 +08:00
fullwall
ba13f6c389
Use raw chat messages to perform commands
2020-04-08 23:19:59 +08:00
fullwall
275728e65b
Fix cat lying down, remove dead code
2020-04-02 13:28:42 +08:00
fullwall
a535cea8bc
Pretty print location in /npc moveto
2020-03-31 21:44:04 +08:00
fullwall
8779062a82
Initialise location cache
2020-03-28 01:51:53 +08:00
fullwall
4cc3c40c87
SpawnReason.COMMAND should try to load the destination spawn location
2020-03-28 01:20:20 +08:00
fullwall
947f4301f3
Set head yaw when teleporting NPCs
2020-03-28 01:14:11 +08:00
fullwall
f0000cdf3b
Allow placeholder API in /npc create, fix float persistence bug
2020-03-27 18:50:14 +08:00
fullwall
773058fa22
Add method to wander provider to set XY range properly
2020-03-22 11:51:32 +08:00
fullwall
1cd8e1913e
Add head yaw persistence
2020-03-21 18:30:52 +08:00
fullwall
1e507a1d57
Use old logic for glowing colour in 1.12, remove unnecessary respawn in /npc rename for non-Player NPCs
2020-03-21 15:19:46 +08:00
fullwall
5f6026f50b
Add --url parameter to /npc skin
2020-03-20 17:29:23 +08:00
fullwall
1ddc78a543
Restore old stuck behaviour
2020-03-16 20:28:41 +08:00
fullwall
46b1ba6e98
Use strings instead of UUID keys
2020-03-07 12:43:16 +08:00
fullwall
f345ef3f16
Restore PR, add --n to /npc command to allow a maximum number of uses per command
2020-03-03 23:40:42 +08:00
fullwall
9f3841c3ec
Fix /npc name in 1.8.8
2020-03-03 23:31:04 +08:00
fullwall
188c65f203
Add --permissions to /npc command
2020-03-02 23:40:13 +08:00
fullwall
496a4cbb3b
Use Minecraft's no gravity logic and enable it for all default flying NPCs
2020-03-02 14:51:54 +08:00
fullwall
87c2a884c5
Merge branch 'master' of github.com:CitizensDev/Citizens2
2020-03-01 15:30:00 +08:00
fullwall
95ab688877
Fix shulker color setting
2020-03-01 15:29:47 +08:00
fullwall
ad69b483db
Add /npc snowman
2020-02-25 14:12:06 +08:00
fullwall
a8676cd739
Add a new look close setting to control enabling while pathfinding
2020-02-25 13:43:19 +08:00
fullwall
225ede02ce
Don't use teleport for flying navigation
2020-02-23 11:08:51 +08:00
fullwall
efc41dc492
Add cooldown option to /npc command
2020-02-22 12:57:03 +08:00
fullwall
0e043843e4
Adjust NPC_NAME_TOO_LONG message
2020-02-21 23:52:53 +08:00
fullwall
de94185133
Fix turtle navigation between biomes
2020-02-21 23:50:35 +08:00
fullwall
e52f616a4b
Added sitting flag to /npc panda
2020-02-21 20:28:57 +08:00
fullwall
fca5dc21e0
Make bee always flyable
2020-02-21 17:40:27 +08:00
fullwall
b9a08d609a
Reformat project
2020-02-14 22:48:40 +08:00
fullwall
ade25b246a
Use Minecraft horse controls
2020-02-14 22:42:03 +08:00
fullwall
3bf5881c4b
Fix /npc equip for horses on 1.15, add max controllable speed setting
2020-02-14 19:00:06 +08:00
fullwall
72180ff8ee
Update pom
2020-01-22 21:44:12 +09:00
apachezy
577b1fcedd
Added Simplified Chinese language translation file. ( #2028 )
...
* Removed duplicate permissions key in plugin.yml
* Added Simplified Chinese language translation file.
2020-01-19 20:13:16 +09:00
fullwall
c42d5f7aa0
Catch /npc command exceptions
2020-01-17 18:15:21 +09:00
fullwall
36ff6730fd
Allow both hands in /npc command
2020-01-17 18:11:23 +09:00
fullwall
89874092ed
Use PlaceholderAPI for /npc command
2020-01-16 20:40:32 +09:00
fullwall
529855bd6d
Deregister event handlers in deregisterAll(), empty talk item is now equivalent to * talk item
2020-01-16 17:17:58 +09:00
fullwall
cd21b9fb8a
Increase max controllable speed
2020-01-12 21:08:29 +09:00
fullwall
41f4c6e1b4
Properly remove wander waypoint marker
2020-01-12 00:33:43 +09:00
fullwall
a0e3b23bc3
Try to migrate ocelot modifiers trait for new MC versions
2020-01-11 13:41:46 +09:00
fullwall
52e288e43f
Add -o option to /npc command
2019-12-29 22:14:38 +09:00
fullwall
ab4060964c
Add isPowered method
2019-12-24 00:39:27 +09:00
fullwall
1a0282d970
Fix /npc metadata remove and forward getOptional call to avoid default entity type issue
2019-12-23 11:03:08 +09:00
fullwall
5972e3dffc
Make LinearWaypointProvider more null safe
2019-12-21 20:25:38 +09:00
fullwall
3186f6de5e
Change waypoints to onAttach
2019-12-21 19:09:50 +09:00
fullwall
ba61a48815
Bump pom versions
2019-12-21 18:56:28 +09:00
fullwall
8c165b9d55
Warn on missing delay in text prompt
2019-12-19 16:46:26 +09:00
fullwall
64aa09bc94
Incorrect javadoc version
2019-12-12 00:20:31 +08:00
fullwall
688f78ea6f
Merge moduled trait code and discontinue building of 1.10
2019-12-12 00:13:54 +08:00
fullwall
ff9c920df3
Initial 1.15 support
2019-12-11 11:25:10 +08:00
fullwall
0a748c7825
Load /npc spawn --at chunk
2019-12-03 19:01:29 +08:00
fullwall
7715232bb3
Add missing p flag to the annotation
2019-12-02 11:28:34 +08:00
fullwall
0d558c8ee1
Add -p flag to /npc command to run as the clicking player
2019-12-02 11:27:15 +08:00
fullwall
798c82536c
Fix bug in tpto
2019-11-28 16:14:29 +08:00
fullwall
d0dcb235b3
Various fixes and features
2019-11-28 16:10:35 +08:00
fullwall
94733ddb81
Update NPCCommands.java
2019-11-18 23:55:11 +08:00
fullwall
727d1508e9
Implement new command method
2019-11-12 15:17:54 +08:00
fullwall
174ec609ca
Convert to iterator loop
2019-10-20 09:52:07 +08:00
fullwall
771281ef89
Allow tpto to work with 2 arguments
2019-10-19 13:42:37 +08:00
fullwall
63a88acf81
Fix distance calculations for new pathfinder
2019-10-17 18:04:20 +08:00
fullwall
72002e96fa
Don't fall through
2019-10-17 17:38:57 +08:00
fullwall
d7e1110d46
Normalise distance margin calculations across implementations and loosen up the y distance restriction
2019-10-16 18:04:55 +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
95e9aa1389
Fix new command trait persistence
2019-10-01 14:16:00 +08:00
fullwall
dabe4bb43e
Add error colour setting, don't over-paginate for console commands
2019-09-24 22:05:10 +08:00
fullwall
03f3d1a713
Further fix...
2019-09-23 21:30:12 +08:00