Commit Graph

428 Commits

Author SHA1 Message Date
D3v1s0m
15e342564c
added delay info in hover of action list 2023-08-13 12:38:56 +05:30
D3v1s0m
1e0739e73f
changed how action delay works 2023-08-13 12:30:58 +05:30
D3v1s0m
12e2c2963d
Added async task scheduling 2023-08-13 12:08:48 +05:30
D3v1s0m
af286d685d
added fallback server for fetching skin 2023-08-13 11:12:27 +05:30
D3v1s0m
16e3207aaa
small skin cache fix 2023-08-12 23:10:48 +05:30
D3v1s0m
261e25b2ef
added action delay 2023-08-12 14:59:24 +05:30
D3v1s0m
40323c57e5
fix equipment property 2023-08-09 12:55:55 +05:30
Pyrbu
73d2ddbc0b Merge branch '2.X' into modular-property-system
# Conflicts:
#	plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java
#	plugin/src/main/java/lol/pyr/znpcsplus/packets/V1_8PacketFactory.java
#	plugin/src/main/java/lol/pyr/znpcsplus/util/Viewable.java
2023-08-07 23:14:47 +02:00
Pyrbu
3741b76189 implement hoglin 2023-08-07 22:35:33 +02:00
Pyrbu
551b989240 implement cat & tamed property 2023-08-07 22:23:30 +02:00
Pyrbu
f2a4d51e28 implement bat properties 2023-08-07 21:47:10 +02:00
Pyrbu
ddabf9dc2c implement fox properties 2023-08-07 20:55:04 +02:00
Pyrbu
84fa7eb2c9 implement shaking property 2023-08-07 20:27:01 +02:00
Pyrbu
0f6a953a5e implement potion_color and potion_ambient 2023-08-07 20:11:44 +02:00
Pyrbu
8ad3cb73fd make the naming consistent 2023-08-07 20:04:56 +02:00
Pyrbu
1150a028cb remove goat properties from comment 2023-08-07 19:59:15 +02:00
Pyrbu
4e584b8d46 Merge branch 'modular-property-system' into upstream-modular-property-system
# Conflicts:
#	plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java
2023-08-07 16:03:08 +02:00
Pyrbu
a3a0c409e6 goat horn properties 2023-08-07 15:36:03 +02:00
Pyrbu
83b654fd76 ghast attacking property 2023-08-07 15:27:00 +02:00
Pyrbu
923926b0b4 delete already reimplemented properties from the deprecated meta factories 2023-08-07 15:18:26 +02:00
Pyrbu
a4fc363454 implement armor stand rotation properties 2023-08-07 15:17:59 +02:00
Pyrbu
70e1e2d0a2 implement skin layer properties 2023-08-07 14:50:37 +02:00
Pyrbu
1dfb5ae541 implement dinnerbone property 2023-08-07 14:32:27 +02:00
Pyrbu
fb95965ae6 remove todo comment 2023-08-07 13:59:43 +02:00
Pyrbu
0002de3d9c remove already implemented from comment 2023-08-05 23:21:14 +02:00
Pyrbu
342c0dab79 fix the inversion 2023-08-05 23:04:26 +02:00
Pyrbu
b50c5b5e5d remove useless comment 2023-08-05 23:04:16 +02:00
Pyrbu
c11093c392 implement armor stand properties 2023-08-05 21:50:07 +02:00
Pyrbu
c244cb6bab only auto-convert legacy data if the new data directory doesn't exist 2023-08-05 21:01:04 +02:00
Pyrbu
31e64a15fe properly import skins that weren't set with a player name 2023-08-05 20:53:10 +02:00
Pyrbu
f3d5e3f3a8 implement silent property (untested) 2023-08-05 20:49:48 +02:00
D3v1s0m
fed7b7085a
Added hologram items 2023-08-05 09:31:00 +05:30
Pyrbu
6eff7a3b6c remove already implemented properties from the comment 2023-08-05 00:28:55 +02:00
D3v1s0m
3040cbc0bb
remove comment. oops 2023-08-01 19:48:24 +05:30
D3v1s0m
ca8aa4ba16
Implemented citizen importer 2023-08-01 19:46:29 +05:30
D3v1s0m
769eed2f46
fixed skin property showing in property remove command 2023-07-27 19:21:46 +05:30
Pyrbu
580478173f fix weird NPE 2023-07-25 16:53:50 +02:00
Pyrbu
52f083583b update viewers list before showing the npc to prevent the show/hide methods from being called multiple times by the processor task when the method needs extra time to grab skins which causes some problems including multiple teams being created resulting in client warnings/kicks on BungeeCord 2023-07-25 03:24:49 +02:00
Pyrbu
a92de1817d update viewers list before showing the npc to prevent the show/hide methods from being called multiple times by the processor task when the method needs extra time to grab skins which causes some problems including multiple teams being created resulting in client warnings/kicks on BungeeCord 2023-07-25 03:14:41 +02:00
Pyrbu
32b588807a make interaction detection also treat holograms as part of the npc (fixes #76) 2023-07-24 02:51:40 +02:00
Pyrbu
c8abf4f3fb fix some properties removing others when being applied standalone 2023-07-24 02:33:29 +02:00
Pyrbu
792b962e49 rename method to what it actually does 2023-07-24 02:04:56 +02:00
Pyrbu
993cd10b7a make a single generic class for dummy properties 2023-07-24 02:02:19 +02:00
D3v1s0m
fef68e663b
fixed shoulder entity property for 1.8-1.11 2023-07-23 23:18:48 +05:30
D3v1s0m
6e1d089cc7
Added skin variant option when using url 2023-07-22 22:11:05 +05:30
Pyr
f7a7b96648
Merge pull request #79 from Pyrbu/2.X
Merge 2.X changes into property system branch
2023-07-22 11:38:33 +02:00
D3v1s0m
902b902122
Added url skin type 2023-07-21 15:51:32 +05:30
D3v1s0m
ea6812b27e
removed skin_cape from common properties 2023-07-20 14:49:39 +05:30
D3v1s0m
fd0e57e7fe
remove redundant method isShown 2023-07-18 16:46:53 +05:30
D3v1s0m
da7e4cdb78
Merge branch 'Pyrbu:2.X' into 2.X 2023-07-18 16:39:29 +05:30
Pyrbu
d344e02319 use a concurrent set to possibly prevent a ConcurrentModificationException 2023-07-17 23:38:12 +02:00
D3v1s0m
ade20ac869
changed ItemStack in property from PE to Bukkit 2023-07-16 09:48:33 +05:30
Pyrbu
2dd75b4cda make the method actually abstract instead of just returning null 2023-07-16 01:09:57 +02:00
D3v1s0m
9cb580c850
small fix for action edit button 2023-07-16 02:29:45 +05:30
D3v1s0m
9a69fa4e09
API improvements 2023-07-16 02:27:54 +05:30
Pyrbu
5ad9ef823a make build function more readable 2023-07-12 21:09:37 +02:00
Pyrbu
4f1e43b4fa add warning message for missing properties 2023-07-12 20:51:09 +02:00
Pyrbu
9c7166df4b extract spigot api as a common dependency so the versions always match 2023-07-12 20:41:43 +02:00
D3v1s0m
2ff5322093
fixed fix for null properties, lol 2023-07-10 19:15:52 +05:30
D3v1s0m
0596f59304
Added duplicate property name check, just in case 2023-07-10 19:02:06 +05:30
D3v1s0m
29c3c4b22b
fixed null properties when adding, fixes tab complete 2023-07-10 18:56:57 +05:30
D3v1s0m
3411a504e0
fixed value in standalone metadata packet sending 2023-07-10 18:55:32 +05:30
Pyrbu
acd953e460 move to a more modular property/metadata system 2023-07-10 01:01:12 +02:00
Pyrbu
80683f81bc update metadata comment 2023-07-09 20:35:14 +02:00
D3v1s0m
03623a43da
implemented immune_to_zombification property for hoglin 2023-07-06 19:48:56 +05:30
D3v1s0m
63b049bb8c
null property fix if the property doesn't exist when loading. 2023-07-06 19:34:14 +05:30
D3v1s0m
ee30c7dd18
implemented Goat properties 2023-07-05 19:48:50 +05:30
D3v1s0m
959f6241f4
implemented villager properties 2023-07-05 17:23:30 +05:30
D3v1s0m
f68d678a1c
implemented ghast attacking property 2023-07-05 12:43:02 +05:30
D3v1s0m
7888d08ca7
fox properties fix for 1.14, oops 2023-07-05 12:36:53 +05:30
Pyrbu
40fb1dfaf5 add back mule type 2023-07-05 01:01:57 +02:00
D3v1s0m
8f976996b1
order fix 2023-07-03 12:28:20 +05:30
D3v1s0m
11d94d15c0
fix in npc type registry. 2023-07-03 12:21:15 +05:30
D3v1s0m
999f4013c6
Merge remote-tracking branch 'origin/2.X' into 2.X
# Conflicts:
#	plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java
#	plugin/src/main/java/lol/pyr/znpcsplus/commands/property/PropertySetCommand.java
#	plugin/src/main/java/lol/pyr/znpcsplus/entity/EntityPropertyRegistryImpl.java
#	plugin/src/main/java/lol/pyr/znpcsplus/metadata/MetadataFactory.java
#	plugin/src/main/java/lol/pyr/znpcsplus/metadata/V1_12MetadataFactory.java
#	plugin/src/main/java/lol/pyr/znpcsplus/metadata/V1_8MetadataFactory.java
2023-07-03 11:57:29 +05:30
D3v1s0m
7f5b7f8f0a
Implemented frog_variant property 2023-07-03 11:46:55 +05:30
D3v1s0m
4cc468b919
Implemented Fox properties 2023-07-03 11:37:56 +05:30
D3v1s0m
8c83cb3428
Added evoker_spell property. 2023-07-03 11:18:33 +05:30
D3v1s0m
49c23a85a4
Added Enderman properties, TODO: fix them lol 2023-07-03 10:47:10 +05:30
D3v1s0m
fbc3be6259 filter npcs in same world only for near command. fixes #69 2023-07-02 15:51:30 +02:00
D3v1s0m
f812c77cc9 Added shoulder entities for player npc 2023-07-02 15:51:30 +02:00
D3v1s0m
f2c9409923 Fixed dinnerbone property removal not updating. 2023-07-02 15:51:30 +02:00
D3v1s0m
b3475db944
filter npcs in same world only for near command. fixes #69 2023-07-02 15:35:36 +05:30
D3v1s0m
43376c2732
Added shoulder entities for player npc 2023-07-02 10:51:54 +05:30
D3v1s0m
e180843efd
Fixed dinnerbone property removal not updating. 2023-07-01 12:28:18 +05:30
Pyrbu
f8648b7d01 add some build file comments to make it easier to check if a library is being used 2023-07-01 00:46:38 +02:00
Pyrbu
a0a6245479 remove unused libraries 2023-07-01 00:15:23 +02:00
Pyrbu
488d098f79 move GameProfile manipulation to reflection 2023-07-01 00:15:10 +02:00
Pyrbu
f438d50808 rename SkinCache to MojangSkinCache 2023-07-01 00:14:23 +02:00
Pyrbu
acf0abb67b use else-if instead of nesting 2023-06-30 14:43:58 +02:00
D3v1s0m
231ceba803
Fixed non-player npc spawning in 1.14-1.16 2023-06-29 16:59:22 +05:30
D3v1s0m
adac982128
Added dinnerbone property 2023-06-29 01:11:07 +05:30
D3v1s0m
ec1d4445e3
Implemented Creeper Properties 2023-06-28 18:58:09 +05:30
D3v1s0m
2d7f573d7d
Implemented Cat Properties 2023-06-28 18:32:16 +05:30
D3v1s0m
f472ddf5a5
Implemented blaze_on_fire property 2023-06-28 18:19:08 +05:30
D3v1s0m
3647a95b27
Implemented Bee properties 2023-06-28 18:11:27 +05:30
D3v1s0m
2dceea6fe7
Implemented Bat properties 2023-06-28 17:32:18 +05:30
D3v1s0m
dd3c88efce
Implemented Axolotl properties 2023-06-28 17:24:44 +05:30
D3v1s0m
3e583f84f8
Fix incorrect suggestion 2023-06-28 17:11:08 +05:30
Pyrbu
6a2f1d4cb8 make papi util use legacy component serializer for setting placeholders in components 2023-06-28 11:14:47 +02:00
Pyrbu
974cc65fed update some dependencies 2023-06-28 02:54:08 +02:00
Pyrbu
c0df2f6915 make papi util use minimessage serializer instead of legacy serializer because legacy serializer downsamples hex colors 2023-06-28 02:53:21 +02:00
Pyrbu
c617766516 add hex colors to debug npcs 2023-06-28 02:52:55 +02:00
Pyrbu
51fdb8d8fb only register save shutdown task after npcs load 2023-06-28 02:13:26 +02:00
Pyrbu
6dab7a13db add explicit property remove command 2023-06-28 00:31:47 +02:00
Pyrbu
d572053304 make vector suggestions singular 2023-06-27 14:41:00 +02:00
Pyrbu
886b5c1f92 make rotation data creations a bit shorter 2023-06-27 14:36:43 +02:00
D3v1s0m
9030d90bbd
Error message on non-numerical input when parsing Vector3f 2023-06-27 17:51:12 +05:30
D3v1s0m
739bbe7116
Implemented armor stand properties 2023-06-27 17:36:42 +05:30
Pyrbu
46d848b823 fix effects meta not working on versions 1.8-1.10 because of duplicate data indexes due to incorrect implementation of the "using_item" property on those versions 2023-06-26 22:31:22 +02:00
Pyrbu
06c5397bd8 fix skin layer indexes on lower versions 2023-06-26 22:10:26 +02:00
Pyrbu
0d02fc806b add hologram refreshing 2023-06-26 22:00:23 +02:00
Pyrbu
8ef9a5fc93 fix my stupid ass if typo 2023-06-26 17:55:16 +02:00
Pyrbu
95c81e9abf remove unused imports 2023-06-26 17:50:52 +02:00
Pyrbu
e5a62ed952 split name metadata to avoid creating unnecessary lists 2023-06-26 17:50:32 +02:00
Pyrbu
d22a8152e0 add papi support to holograms 2023-06-26 17:41:02 +02:00
Pyrbu
2c8b96f295 add reload config command 2023-06-26 17:32:14 +02:00
Pyrbu
a56096d4d6 make shutdown tasks register right after the component they are meant to shutdown finishes initializing 2023-06-26 17:26:31 +02:00
Pyrbu
37e8b42997 make color parse as hex 2023-06-26 13:10:50 +02:00
Pyrbu
984d7e873d set default color to black instead of white 2023-06-26 13:05:09 +02:00
Pyrbu
2a19c974b8 switch to using bukkit Color class 2023-06-26 12:51:48 +02:00
Pyrbu
eb1fd0cadd Merge remote-tracking branch 'origin/2.X' into D3v1s0m/2.X 2023-06-26 12:27:55 +02:00
Pyrbu
4489e5dacc add setProperty method to the api 2023-06-26 12:20:42 +02:00
D3v1s0m
7c5bcef560
Fixed 1.17 packet factory. oops 2023-06-26 11:29:41 +05:30
D3v1s0m
fc7799dbd8
Added easier method to register enum parser and serializer 2023-06-26 11:25:28 +05:30
D3v1s0m
127f8f49af
disabled offhand property for 1.8 2023-06-25 15:22:55 +05:30
D3v1s0m
1b3e95d445
Implemented using item property 2023-06-25 14:52:49 +05:30
D3v1s0m
7858cdee8f
Set default potion color 2023-06-25 13:37:36 +05:30
D3v1s0m
6d4cd5199a
Implemented potion color and potion ambient properties 2023-06-25 13:05:28 +05:30
Pyrbu
16c48043b4 Merge remote-tracking branch 'origin/2.X' into 2.X 2023-06-23 23:12:31 +02:00
Pyrbu
6b75423f9c add skin descriptor factory to the api 2023-06-23 23:12:24 +02:00
D3v1s0m
0b4e3cd364
Fixed shaking property not disabling 2023-06-23 11:27:55 +05:30
D3v1s0m
9c96be96db
Fixed npc not spawning and saving at all 2023-06-23 11:24:39 +05:30
Pyrbu
d91d86ca88 Merge branch '2.X' of https://github.com/Pyrbu/ZNPCsPlus into 2.X
 Conflicts:
	plugin/src/main/java/lol/pyr/znpcsplus/ZNpcsPlus.java
2023-06-23 00:03:09 +02:00
Pyrbu
96be7b34ef use more efficient delete method 2023-06-22 23:29:18 +02:00
Pyrbu
81204688e5 seperate shaking into a seperate function in the metadata factory to avoid creating unnessecary lists 2023-06-22 23:29:08 +02:00
Pyrbu
8093e709dd extract entity pose into an api class so people dont have to add packetevents to their dependencies 2023-06-22 23:27:10 +02:00
Pyrbu
736321a756 add automatic importing of legacy znpcsplus data 2023-06-22 22:41:25 +02:00
D3v1s0m
2c708e2754
removed crouched property as pose can be used instead 2023-06-23 01:28:10 +05:30
D3v1s0m
b7df0e3a33
Added pose property 2023-06-23 01:16:58 +05:30
D3v1s0m
079006d9cb
implemented shaking and crouched properties 2023-06-22 20:02:02 +05:30
D3v1s0m
c81b4a8737
fixed cape property name when building npc type 2023-06-22 19:38:08 +05:30
D3v1s0m
360ae36dbd
added version 16 when setting packet factory - pyr forgot 2023-06-22 18:48:52 +05:30
D3v1s0m
40fc046c30
Terminated PacketEvents correctly on plugin disable 2023-06-22 18:45:49 +05:30
D3v1s0m
08d69f6848
Hide all npcs on plugin disable 2023-06-22 18:42:33 +05:30
Pyrbu
28300cded5 make run task use Java 17 2023-06-19 22:16:01 +02:00
Pyrbu
9d2489e84c make update checker treat snapshot versions as 1 lower than a full release 2023-06-19 21:48:25 +02:00
Pyrbu
e496d00fcd remove the might not work correctly message because its false 2023-06-19 21:44:38 +02:00
Pyrbu
60b5ac9683 add npc toggle command 2023-06-19 15:29:34 +02:00
Pyrbu
78fbb13348 add uuids to npcs & add uuid importing to znpcs importer 2023-06-19 14:29:12 +02:00
Pyrbu
ffd189b2fc make update checker ignore all characters that arent numbers 2023-06-19 13:49:59 +02:00
Pyrbu
ac3827986f stop using an obscure ass immutable array list implementation 2023-06-19 00:58:26 +02:00
Pyrbu
0052584507 Improve api a lot 2023-06-19 00:20:18 +02:00
Pyrbu
9e920ecab1 make importer ids lower case and add base for citizens importer 2023-06-19 00:01:38 +02:00
Pyrbu
f8f5877619 add unused warning suppressions to pojo classes 2023-06-18 23:15:27 +02:00
Pyrbu
7eb9a5a9e0 add equipment and skin support to znpcs importer 2023-06-18 23:14:39 +02:00
Pyrbu
1925eb0e95 add amount of npcs imported to import command 2023-06-18 23:14:05 +02:00
Pyrbu
35e08097d5 remove unused warning supression 2023-06-18 23:13:47 +02:00
Pyrbu
8e6cbb61af Add import command & improve importing 2023-06-18 19:33:47 +02:00
Pyrbu
1f7ddb5b7c remove unused relocation 2023-06-18 19:04:01 +02:00
Pyrbu
01f1723b71 lay out most of the possible properties 2023-06-16 12:33:52 +02:00
Pyrbu
09def38142 properly enable the skin layer properties on the player npc type 2023-06-15 22:47:34 +02:00
Pyrbu
0a1bbaf1f6 fix action add help message typo 2023-06-15 00:58:02 +02:00
Pyrbu
b31b719633 fix property name typo in 1.8 packet factory 2023-06-14 23:18:58 +02:00
Pyrbu
1239126105 use the proper method for reloading holograms when adding or inserting new lines 2023-06-14 23:15:18 +02:00
Pyrbu
354a9133c3 use legacy serializer for 1.8 version 2023-06-14 22:47:29 +02:00
Pyrbu
5b050aee6c major help message improvements 2023-06-14 15:30:43 +02:00
Pyrbu
641bdebec5 rename properties to property 2023-06-14 14:45:04 +02:00
Pyrbu
17f7b36f81 help message work 2023-06-14 14:25:09 +02:00
Pyrbu
ae4103b8cb downgrade spigot api version to 1.8.8 to improve backwards compatibility 2023-06-14 14:23:37 +02:00
Pyrbu
e90f3a2a5f fix comment typo caused by stupid intellij refactoring comments 🤦 2023-06-14 00:04:35 +02:00
Pyrbu
5651b39328 fix action add completion 2023-06-13 23:58:10 +02:00
Pyrbu
0acda842d6 new help message system 2023-06-13 23:57:43 +02:00
Pyrbu
4c8432678e small work on znpcs loader 2023-06-13 23:57:17 +02:00
Pyrbu
8f82afeb0b make action list not bold 2023-06-13 23:57:04 +02:00
Pyrbu
fa890e3924 fix player chat action 2023-06-13 23:55:10 +02:00
Pyrbu
7a3bf0deb0 seperate all the skin layer parts out into different properties 2023-06-13 22:51:04 +02:00
Pyrbu
f6f861a652 make EntityData value types guaranteed safe at compile time using generics 2023-06-13 22:31:39 +02:00
Pyrbu
3714bafbb4 explicitly cast the numbers to bytes because PacketEvents gets confused because it accepts Object 2023-06-13 22:26:56 +02:00
Pyrbu
5e6034d384 add new 1.20 mob types 2023-06-13 15:17:24 +02:00
Pyrbu
80b9be8cd2 update minecraft version in runpaper 2023-06-13 15:17:12 +02:00
Pyrbu
699d3cc999 Merge remote-tracking branch 'origin/2.0.0' into 2.0.0 2023-06-10 13:59:36 +02:00
Pyrbu
9d1cc4452f remove legacy discord tags from plugin.yml 2023-06-10 13:59:30 +02:00
D3v1s0m
31f558a15e
registered PlayerChatActionType 2023-06-07 15:56:18 +05:30
D3v1s0m
92a2762868
Added action list command 2023-06-07 15:55:04 +05:30
D3v1s0m
eafb5a1f53
convert delay from double to int 2023-06-07 15:44:54 +05:30
Pyrbu
321e4a39e6 enable skin properties on player npc type 2023-06-02 14:35:42 +02:00
Pyrbu
0418c25f5f start on conversions 2023-05-30 13:49:14 +01:00
Pyrbu
1f0a24a64f make it actually build (oops!) 2023-05-29 21:14:20 +01:00
Pyrbu
0a6f599ece add player chat action 2023-05-29 21:11:01 +01:00
Pyrbu
cd2cdd6869 generalize action types more 2023-05-29 21:10:51 +01:00
Pyrbu
962664b5b5 make the click type actually save 2023-05-29 20:50:41 +01:00
D3v1s0m
640f7a8f8d
Added cape property 2023-05-28 13:48:57 +05:30
D3v1s0m
fa0b82cde5
skin error message fix 2023-05-28 12:11:45 +05:30
D3v1s0m
91de1f7f02
fixes #57 2023-05-28 11:42:22 +05:30
D3v1s0m
8d073aa2d9
Added Action Edit command 2023-05-28 11:02:00 +05:30
Pyrbu
84af1753e6 fix npcs not re-appearing when switching worlds at similar coordinates 2023-05-26 16:19:12 +01:00
Pyrbu
22058a607f fix folia player commands 2023-05-26 16:03:03 +01:00
Pyrbu
4a4b384992 add PlaceholderAPI support to message action 2023-05-26 13:08:27 +01:00
Pyrbu
ec9ee770a4 fix support for 1.19.1 & 1.19.2 2023-05-26 12:47:31 +01:00
Pyrbu
7924fbae62 remove first line of hologram from list command because it makes no sense 2023-05-26 11:17:47 +01:00