Commit Graph

245 Commits

Author SHA1 Message Date
Andrew
53b5be001d Sort by name 2013-07-29 11:19:59 +12:00
Andrew
293b4f7de1 Fix bug and change Values to use switch statement 2013-07-28 12:05:47 +12:00
Andrew
b80eecfc63 Fixed typo 2013-07-28 11:55:59 +12:00
Andrew
2b0df513e1 Clean it up some more 2013-07-28 11:20:13 +12:00
Andrew
15c2ee6305 Move calls elsewhere and rename some methods and remove old code. 2013-07-28 11:01:09 +12:00
Andrew
e659875347 Allow devs to change the sounds of disguises 2013-07-28 11:00:43 +12:00
Andrew
cd44c50f2e Fetch the watcher that it will use. And stop using empty watchers 2013-07-28 11:00:29 +12:00
Andrew
593f3f492b Store the type of watcher this disguise will use 2013-07-28 10:59:49 +12:00
Andrew
e755ed24db Let developers construct the watcher themselves 2013-07-28 10:58:21 +12:00
Andrew
4c81ea1b95 Added new constructor for mob disguise 2013-07-24 15:57:16 +12:00
Andrew
384a20ab6e Fixed a error when custom name longer then 64, fixed derp with a method return 2013-07-24 15:57:05 +12:00
Andrew
1e511bede0 Added ability to check kind of Disguise 2013-07-24 15:56:41 +12:00
Andrew
b809790ea3 Add events 2013-07-24 12:16:54 +12:00
Andrew
a0892c56c1 Clean up code 2013-07-24 12:16:47 +12:00
Andrew
29ec18fe03 Fixed the wrong boolean being returned 2013-07-23 06:44:27 +12:00
Andrew
18ea8e079c Fixed entity damage sounds and check if entity can age before modifying pitch 2013-07-23 06:38:54 +12:00
Andrew
dbffa801c7 Don't try to use the watcher if the watcher doesnt exist 2013-07-23 06:38:29 +12:00
Andrew
bc08c933ca Fix Bat watcher 2013-07-23 06:38:16 +12:00
Andrew
2ca0dbbc28 Add fall sounds for things that shouldn't fall 2013-07-23 06:37:50 +12:00
Andrew
114a0fd285 Add method to see if the disguise ages 2013-07-23 06:37:15 +12:00
Andrew
573e307d19 Fixed bat sound bug. Fixed unable to check if the sound is baby/adult 2013-07-23 05:15:45 +12:00
Andrew
b34033d942 Sort by name 2013-07-23 02:18:34 +12:00
Andrew
6ae7d703b0 Fix a npe 2013-07-23 02:06:19 +12:00
Andrew
af6e6a1aa9 Added villager sounds and witch sounds (Which don't work) 2013-07-23 02:04:42 +12:00
Andrew
a74465157b Read desc
Play damage sound even if the damaged doesn't play the sound
Change pitch depending on the disguise and the disguised.
Change volume depending on the sound + previous volume
2013-07-23 01:33:58 +12:00
Andrew
efede32c9b Added .equals and fixed up velocitys to look better for worse pings 2013-07-23 01:32:29 +12:00
Andrew
890e17ba36 Set the sound strength when loading the entitys 2013-07-23 01:32:05 +12:00
Andrew
3e0b557d14 Change sounds to store a string instead, added horse types sounds. Added sound strength for hurt/death 2013-07-23 01:31:11 +12:00
Andrew
67e9aec7d1 Add break for DisguiseType switch statement 2013-07-23 01:30:40 +12:00
Andrew
ad47108567 Allowed .equals() to be used on disguises and watcher 2013-07-23 01:30:21 +12:00
Andrew
0898c3c387 Set the disguise radius in config if not set 2013-07-22 22:36:38 +12:00
Andrew
e7f283dc25 Read desc
Don't disguise the command sender when doing a radius
Fixed saying a incorrect entity count when undisguising
2013-07-22 22:36:24 +12:00
Andrew
709f07e610 Added more/better/worse checkin for cross referencing data types 2013-07-21 22:19:10 +12:00
Andrew
0128452069 Read desc
Fixed vechile spawn packets looking strange
Fixed item frame crash
Fishing hook semi-fixed. Can't fix completely.
Fixed a safety check (Wasn't really needed tho)
All disguises should now float in the air
Tnt is fixed.
Fireworks is fixed
2013-07-21 18:23:52 +12:00
Andrew
85ee40384a Set the bat to flying 2013-07-21 17:03:25 +12:00
Andrew
0888f33d1d Added the disguise types which don't need vectors 2013-07-21 15:37:29 +12:00
Andrew
3f85f0f45a Use switches instead of ifs 2013-07-21 15:19:47 +12:00
Andrew
285f8f51fd Read desc
Now set data which is different type then expected.
Added scheduler
2013-07-21 15:19:33 +12:00
Andrew
59588f5270 Read desc
Now use Entitys completely for the disguising.
Now removes the disguise when the entity isn't valid.
Deprecated the methods using a object.
Added methods to set and get velocity - If packets should be sent.
2013-07-21 15:17:21 +12:00
Andrew
a1ff8e6db9 Send the metadata to only the players who can see it 2013-07-21 15:15:28 +12:00
Andrew
3e4a9b9f15 Moved update checking to the listener 2013-07-21 15:14:59 +12:00
Andrew
ff8542c80a Use Disguise instead of entity id in watcher 2013-07-21 15:14:40 +12:00
Andrew
dcb8bc427e Fixed sending the wrong data when modifying data 0 2013-07-17 13:55:30 +12:00
Andrew
2138c7bc4f Read desc
Removed duplicate horse watchers
All applicable disguisetypes are now the same names as entity type.
Fixed bug where it sometimes didnt return disguisetype when fed
entitytype
Added zombie_villager disguisetype even tho its not that big a
disguise..
Changed the entitytype I store to the bukkit's version. Should work the
same.. Untested ofc.
Hopefully broke peoples plugins :)
2013-07-16 23:42:35 +12:00
Andrew
20a7ed15da nvrm. cloning her hitler waz bad idea! 2013-07-16 22:42:52 +12:00
Andrew
996fe4a31e Clone de watcher her hitler! 2013-07-16 22:31:16 +12:00
Andrew
5eca9c9d12 Now able to set the max radius for disguiseradius and undisguiseradius 2013-07-16 18:53:39 +12:00
Andrew
8afc336fd1 Fixed ANOTHER typo 2013-07-16 17:57:14 +12:00
Andrew
472d114474 Fixed another typo 2013-07-16 17:37:31 +12:00
Andrew
ddf3650675 Fixed perm typo 2013-07-16 17:36:06 +12:00
Andrew
6034ae612a Fixed adult problems. tehehe 2013-07-16 17:23:53 +12:00
Andrew
823914d626 Added clone() for the disguises, clones it auto. Fixes potential bug 2013-07-16 17:23:38 +12:00
Andrew
0e43fb481d Fixed some typos in the commands 2013-07-16 17:23:11 +12:00
Andrew
2d34be3276 Fixed setting the adult and disguising non-living to living 2013-07-16 17:05:44 +12:00
Andrew
0ddec96d24 Added todo for disguise sounds 2013-07-16 17:01:46 +12:00
Andrew
2c652db58b Redid existing disguise commands to make em prettier 2013-07-16 17:01:32 +12:00
Andrew
dd02b4bcc2 Added command to disguise a entity by right clicking it 2013-07-16 17:01:12 +12:00
Andrew
d50e891872 Added command to disguise in a radius 2013-07-16 17:00:49 +12:00
Andrew
fafa69415e Quick fix before 6.2 - Removed scheduler delay 2013-07-15 20:02:43 +12:00
Andrew
7ff7558809 Entitys now face the right way when spawning 2013-07-15 19:59:30 +12:00
Andrew
9ea389eaf8 Read description
Changed how I set the default datavalues.
Crashes should now be a thing of the past..
Painting is no longer glitched. (Still goes in floor)
Horse watcher is better.
Updated outdated values.
Updated incorrect yaw for disguises
2013-07-15 19:33:23 +12:00
Andrew
14b76f73c8 Set the damage for a minecart 2013-07-14 11:48:05 +12:00
Andrew
b7ebe8411a Removed abstract from minecart watcher 2013-07-14 11:44:07 +12:00
Andrew
15a43ea47a Fixed minecart crash 2013-07-14 11:41:30 +12:00
Andrew
dcc3fcea50 Change the method to accept a string and feed it a string instead 2013-07-13 08:19:24 +12:00
Andrew
fd6de1c47c Get rid of multiple minecart watchers 2013-07-12 08:55:12 +12:00
Andrew
590afd86d8 Stop comparing values to classes 2013-07-12 08:33:26 +12:00
Andrew
84919eeea5 Stop the disguised recieving packets 2013-07-12 08:33:17 +12:00
Andrew
10595695c6 Sort by name 2013-07-12 06:38:38 +12:00
Andrew
65e42e0132 Create a new entity and start changing attribute packets 2013-07-12 06:38:07 +12:00
Andrew
bb04421378 Set the values of the new flag watcher 2013-07-12 06:37:35 +12:00
Andrew
fe07ea3e9f Introducing the new watcher values 2013-07-12 06:36:55 +12:00
Andrew
8d2128f127 Removed WatcherValues as it is now old 2013-07-12 06:36:42 +12:00
Andrew
a2c8042f4c Move the setting of watcher values for precaution down after a secondary watcher construction 2013-07-12 02:03:55 +12:00
Andrew
d4c657eee6 Change the packet sent for data to a packet container instead of CB packet 2013-07-12 01:59:39 +12:00
Andrew
8ca7f25b4a Small textual update 2013-07-10 07:25:12 +12:00
Andrew
a2e789aac6 Added methods and changed internals for flag watchers. 2013-07-09 16:08:47 +12:00
Andrew
d181addde9 Opps. Its 7 not 9 2013-07-09 15:09:52 +12:00
Andrew
370a357666 Added DisguiseSound for the horses. Still no sound.. 2013-07-09 15:03:33 +12:00
Andrew
9b0f7ba6c7 Added more disguising for horses 2013-07-09 15:01:24 +12:00
Andrew
c70f0ab5b4 Updated to 1.6.2 2013-07-09 14:51:35 +12:00
Andrew
e0129c154a Added ability to change horse types 2013-07-07 20:38:07 +12:00
Andrew
c2530f4fe2 Add horse watcher 2013-07-07 19:18:23 +12:00
Andrew
728766ef48 Auctally set the metadata.. 2013-07-07 19:18:17 +12:00
Andrew
1db5b1ecd0 Make WatcherValues tidier and add Horse 2013-07-07 19:18:04 +12:00
Andrew
393558587e Make DisguiseType tidier and add Horse 2013-07-07 19:17:34 +12:00
Andrew
15c1d5651b Throw error if constructing watcher and something unexpected happens 2013-07-07 19:17:21 +12:00
Andrew
bf6a526934 Add 2 classtypes 2013-07-07 03:44:07 +12:00
Andrew
e6457d0bb4 Sort by name 2013-07-07 03:43:59 +12:00
Andrew
1c056089bc Auctally grab the datawatcher 2013-07-07 03:42:25 +12:00
Andrew
5db33ffcf6 Don't deep clone meta. Doing that already! Cancel attributes packet. Non-living dont send it.. 2013-07-07 02:34:12 +12:00
Andrew
58453822c5 Make a new watchable object 2013-07-07 02:33:33 +12:00
Andrew
f4905dcb7b No longer need to set the string for blaze breathe 2013-07-07 02:30:19 +12:00
Andrew
447e5cf553 Updated datawatcher values for 1.6.1 2013-07-04 00:39:36 +12:00
Andrew
1089032e4a Update LibsDisguises to 1.6 2013-07-02 15:29:12 +12:00
Andrew
009a4608b8 Changed update message coloring to red 2013-06-25 15:15:38 +12:00
Andrew
90c7817634 Fixed a error for the updater. 2013-06-25 13:37:17 +12:00
Andrew
1ddc880e3b Fixed a error.. 2013-06-25 13:35:32 +12:00
Andrew
6f8fecdca3 Fix bug for sounds? 2013-06-24 04:01:57 +12:00
Andrew
7ec82735f9 Access to the hashmap is now through one method 2013-06-23 08:58:53 +12:00
Andrew
ce9697b1ab Added new constructor for MiscDisguise, fixed potential issue in packet editing 2013-06-05 19:09:41 +12:00
Andrew
bf48c0baac Fixed nasty datawatcher bug which 'randomly' crashes the client 2013-06-04 01:16:37 +12:00
Andrew
5c51f9680e Correct blaze value 2013-06-02 23:47:08 +12:00
Andrew
174d297445 Fixed update checker, changed listener prioty to highest 2013-06-02 16:10:37 +12:00
Andrew
71299696f9 Never again shall I haz protected watchers 2013-06-02 09:03:03 +12:00
Andrew
7324926062 No longer using concurrenthashmap 2013-06-01 18:35:31 +12:00
Andrew
20a75f947a Added update checking for LibsDisguises 2013-05-31 20:55:55 +12:00
Andrew
d1ccc40c59 Read desc
Watcher is never null now
You can now change potion particles etc.
Added LivingWatcher
Cleaned up code
2013-05-31 03:36:59 +12:00
Andrew
39ca52ae8d Fixed 2 small mistakes which could make people think bug. 2013-05-31 02:31:18 +12:00
Andrew
3c51dae83b Fix fireball, giant, ghast and items 2013-05-30 08:46:51 +12:00
Andrew
1a3ab9379a Fixed a bad sheep value 2013-05-30 08:12:27 +12:00
Andrew
4ffb4a4489 Fixed pig zombie crash 2013-05-30 08:11:41 +12:00
Andrew
00c0640f70 Fixed zombies again 2013-05-30 07:12:08 +12:00
Andrew
9903ee4ac6 Fixed zombie crashing player 2013-05-30 06:39:04 +12:00
Andrew
437ac02e5a Released 4.5 2013-05-30 06:25:20 +12:00
Andrew
f31e9011ff Removed non-used code 2013-05-30 06:21:56 +12:00
Andrew
f1b76f622b Fixes more sound bugs 2013-05-30 06:20:50 +12:00
Andrew
19b61395ee Less bugs. Still writing 2013-05-30 05:17:48 +12:00
Andrew
c78843aa2a Read desc
Tried a little fix for sounds.
Hopefully made a fix for concurrent modification errors
Fixed typo in disguise player command
Added warning and disable if ProtocolLib isn't found
2013-05-30 02:25:00 +12:00
Andrew
2206652364 Now loops in order 2013-05-29 12:27:58 +12:00
Andrew
f8f8dba027 Fixed spider, pig, cave spider and sheep sounds 2013-05-29 12:25:02 +12:00
Andrew
d55f718a8a Added a fix for players who can't see other players 2013-05-29 11:00:31 +12:00
Andrew
ecb4f1e8ec Sorted all members 2013-05-29 10:52:54 +12:00
Andrew
b29a3fae5e Cleaned up perms 2013-05-29 10:52:10 +12:00
Andrew
a7908e5738 Added disguising other players commands 2013-05-29 10:44:55 +12:00
Andrew
09b4955e23 Read description
Completely redone how the disguising works.
Sends packets through protocollib now.
Doesn't hide the players anymore. It changes entity trackers.
You can now disguise any entity.
Added painting disguise.
Added disguisesound which stores sounds for each disguise.
Any disguise makes a sound? Its replaced with the proper sound.
Added ability to turn off and on the sounds
Added ItemFrameWatcher and PlayerWatcher
2013-05-29 10:29:36 +12:00
Andrew
902fc99686 Read desc
Fixed enderdragon flying backwards.
Fixed vechiles not facing the right way
Fixed entitys sometimes remaining in the world
2013-05-28 00:11:12 +12:00
Andrew
bed69e85d3 Fixed exp orb packet no sent 2013-05-21 18:16:33 +12:00
Andrew
0bda040a60 Read description
Added command undisguise
Changed perm for undisguise to libsdisguises.undisguise
Moved where the commands are set incase of errors.
2013-05-21 14:23:58 +12:00
Andrew
83e0ffb223 Added perms for the command, added safety check 2013-05-21 14:15:05 +12:00
Andrew
bd38aa428a If someone can't see someone. This will no longer changed if they are disguised 2013-05-21 13:35:39 +12:00
Andrew
abe1a93000 Released 3.2 - Added more sounds 2013-05-21 13:19:46 +12:00
Andrew
2ff2acb3a1 Removed isExp() and now supports playing sounds. ALso no crashing for entitys 2013-05-21 12:59:57 +12:00
Andrew
1739c96e38 Removed logging 2013-05-21 00:34:37 +12:00
Andrew
fd243d196c Added villager watcher 2013-05-21 00:27:28 +12:00
Andrew
f9c3bbcf10 Released 3.0 2013-05-20 23:26:37 +12:00
Andrew
0c6d1c9280 Added the rest of disguisable entitys. Fixed crashes 2013-05-20 23:00:59 +12:00
Andrew
6b8bce622d Fixed bug where watcher wasn't constructed until someone sees you 2013-05-20 19:57:41 +12:00
Andrew
005e28fe8b Fixed 2 bugs with entity location and metadata. Released 2,2 2013-05-20 12:51:49 +12:00
Andrew
e20732836d Released 2.1 2013-05-19 17:03:47 +12:00
Andrew
0438639955 Added 3 watchers. MiscDisguise now works 2013-05-19 16:53:58 +12:00
Andrew
67256c118e Renamed LibsBaseWatcher to FlagWatcher 2013-05-19 15:54:44 +12:00
Andrew
86eb1f9af3 Read description
Updated libs disguise to use custom datawatchers.
This ensures that I can now set custom flags on disguises.

Also fixes it looking bugged
2013-05-19 15:44:13 +12:00
Andrew
567200ca4d Removed old code 2013-05-18 09:46:22 +12:00
Andrew
739ce9f10e First commit 2013-05-18 09:05:19 +12:00