Commit Graph

45 Commits

Author SHA1 Message Date
Andrew
8ebd632363 Setting viewSelfDisguise on the disguise now updates it 2013-08-15 08:57:30 +12:00
Andrew
2b2f5d4aed Rename discard() to removeDisguise(). Make the disguise reusable 2013-08-13 21:57:21 +12:00
Andrew
448c227303 Read desc
Added discard() to disguise
Renamed methods and added comments to make it easier to understand
Moved old calls to use the discard() instead
2013-08-13 21:44:54 +12:00
Andrew
76a0949c30 Rename internal methods 2013-08-13 20:29:25 +12:00
Andrew
01597b4f5d Read desc
Moved packet listeners to PacketsManager
Fixed a bug with FlagWatcher setting values it shouldn't
Cleaned up api calls
Cleaned up code
Added commenting
2013-08-13 15:19:50 +12:00
Andrew
1e8206baa5 Let them get the event. But just don't let cancel do anything 2013-08-12 07:25:48 +12:00
Andrew
ec96bdd962 Read desc
Disguises can now have velocity sent toggled indivially
Disguises can also have self view toggled
Disguises can also have self hearing toggled.
Changed when the undisguise event is fired so its only fired when you
can cancel it
Disguises now undisguise only when the entity is no longer valid - Its
not in the world
Fixed small bugs
2013-08-12 07:24:52 +12:00
Andrew
41d5b60ffe Changed events to have a better naming system. 2013-08-12 06:32:51 +12:00
Andrew
66be1f8fa9 Sort by name 2013-08-09 09:14:44 +12:00
Andrew
e80523c59f Fixed error 2013-08-09 05:56:13 +12:00
Andrew
1d5bcebce9 Add method to disguise next entity. Use entity ID's not entitys. 2013-08-07 22:51:42 +12:00
Andrew
cd11dc3572 Don't throw a error if tracker not found. Just run again later 2013-08-06 00:22:04 +12:00
Andrew
0981a0a88a Player is no longer invisible to himself when undisguising 2013-08-01 19:56:27 +12:00
Andrew
47d84ed794 Removed RedisguisedEvent 2013-07-31 19:39:16 +12:00
Andrew
f15966a0f2 More config options. Added hearing yourself disguised option 2013-07-31 17:46:24 +12:00
Andrew
fa9a350106 Read desc
Now throws a error when disguising when the player logs in right away -
Informational
Packet 44 is now using the ProtocolLib accepted id.
2013-07-31 17:12:39 +12:00
Andrew
f3f451a9c6 Fix crashes 2013-07-30 15:31:07 +12:00
Andrew
6af89013c5 Read desc
Lots of code cleaned up
Added viewing yourself as a disguise - It can be laggy..
2013-07-30 12:44:00 +12:00
Andrew
9284990ae1 FlagWatcher no longer wants a JavaPlugin to be constructed 2013-07-29 11:21:42 +12:00
Andrew
e755ed24db Let developers construct the watcher themselves 2013-07-28 10:58:21 +12:00
Andrew
b809790ea3 Add events 2013-07-24 12:16:54 +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
573e307d19 Fixed bat sound bug. Fixed unable to check if the sound is baby/adult 2013-07-23 05:15:45 +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
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
823914d626 Added clone() for the disguises, clones it auto. Fixes potential bug 2013-07-16 17:23:38 +12:00
Andrew
c70f0ab5b4 Updated to 1.6.2 2013-07-09 14:51:35 +12:00
Andrew
e6457d0bb4 Sort by name 2013-07-07 03:43:59 +12:00
Andrew
1089032e4a Update LibsDisguises to 1.6 2013-07-02 15:29:12 +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
7324926062 No longer using concurrenthashmap 2013-06-01 18:35:31 +12:00
Andrew
39ca52ae8d Fixed 2 small mistakes which could make people think bug. 2013-05-31 02:31:18 +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
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
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
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
2ff2acb3a1 Removed isExp() and now supports playing sounds. ALso no crashing for entitys 2013-05-21 12:59:57 +12:00
Andrew
6b8bce622d Fixed bug where watcher wasn't constructed until someone sees you 2013-05-20 19:57:41 +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
739ce9f10e First commit 2013-05-18 09:05:19 +12:00