Commit Graph

239 Commits

Author SHA1 Message Date
riking
1207d70d6e Dedent parseDisguise() method for-loop 2014-06-04 09:18:05 -07:00
riking
bb0ac727bf Remove more redundant actions 2014-06-04 09:17:47 -07:00
libraryaddict
956fef9ca1 Add a config option which fixes a bug where you can dye sheep/wolf client sidedly 2014-06-04 14:43:58 +12:00
libraryaddict
87c0cb4a78 Actually remove the unknown entity id. Not the known entity ids.. 2014-06-04 14:20:02 +12:00
libraryaddict
239bc6d645 Check a second after the future disguise was added that it was successful. 2014-06-04 14:12:09 +12:00
libraryaddict
34f0a13b39 Remove badly thought out and obselete feature that didn't work 2014-06-04 13:58:16 +12:00
riking
db5e77d28f Remove useless local 2014-06-03 18:42:27 -07:00
riking
6d6b766823 For-each loops, remove unused method parameters 2014-06-03 18:42:27 -07:00
riking
5dce8a22e8 Simplify redundant statements and casts 2014-06-03 18:42:27 -07:00
riking
009df4a0ad Turn manual array copies into System.arrayCopy 2014-06-03 18:42:27 -07:00
riking
d32a077359 StringBuilder, rename local, javadocs 2014-06-03 18:42:27 -07:00
libraryaddict
4e441493c1 Combine inventory listener server and client into one listener. Seeing as they don't need to be seperate and actually cuts down on code 2014-06-04 12:47:52 +12:00
libraryaddict
4bbf0fbece Clone the disguise when fetched 2014-06-02 10:06:30 +12:00
libraryaddict
31a0b68bdc Change the use of the disguiseclone command to use references instead 2014-06-02 10:03:59 +12:00
libraryaddict
3426e0adb6 Changed "Can't use command" to follow one message 2014-06-02 03:52:54 +12:00
libraryaddict
5bfd6c5541 Fix outdated code which would make huge problems because of previous fix 2014-06-01 06:53:01 +12:00
libraryaddict
841dab296d Add setSkin for playerdisguise. This may be removed in future versions 2014-06-01 06:47:05 +12:00
libraryaddict
f94748afa5 Yeah. Fix the memory leak plox 2014-05-29 22:16:04 +12:00
libraryaddict
aea49bfc43 Fix a memory leak :( 2014-05-29 22:10:34 +12:00
libraryaddict
56902b8aff Don't fetch the datawatcher twice 2014-05-28 21:53:08 +12:00
libraryaddict
39d01c1bea Use Collection with no <String> or <Player> so that you can feed either in as a parameter 2014-05-28 12:09:16 +12:00
libraryaddict
4e8b0da944 Get rid of this try/catch 2014-05-25 17:58:53 +12:00
libraryaddict
6652959553 Fix up URLDecoding as per @zreed's recommendation 2014-05-25 17:57:34 +12:00
libraryaddict
e24f404e42 Tiny cleanup 2014-05-24 05:24:55 +12:00
libraryaddict
19aabb2656 Fixed sending data on a flagwatcher not taking their real metadata into account when its adding metadata 2014-05-24 05:14:14 +12:00
libraryaddict
26ccaabe83 Added ability to set the max health of a disguise using attributes 2014-05-23 14:52:21 +12:00
libraryaddict
0c305a8151 Fixed isRightClicking being slightly bad 2014-05-23 14:03:02 +12:00
libraryaddict
ae06e527be Added disable metadata packet - Aka cached 2014-05-23 13:58:21 +12:00
libraryaddict
a70932da4d Forgot to add a hook here.. 2014-05-23 10:33:50 +12:00
libraryaddict
d4ac36b1ef added small note 2014-05-23 10:30:56 +12:00
libraryaddict
71f15dff77 Added a way to selectively disguise only certain entities with disguise radius. Also changed the coloring of the help 2014-05-23 09:14:52 +12:00
libraryaddict
92172f91af Add classgetter 2014-05-23 09:13:35 +12:00
libraryaddict
31dd6ef5e3 Allow -baby to exist in perms 2014-05-23 08:26:43 +12:00
libraryaddict
72d07e7f62 Added a slew of options to disable packets for performance gains 2014-05-23 08:14:46 +12:00
libraryaddict
eef044a5a6 Fix up multiple options for a single disguise 2014-05-22 08:22:50 +12:00
libraryaddict
ccb512a20b Tiny tiny cleanup 2014-05-22 05:42:53 +12:00
libraryaddict
34418ddab5 Tell them exactly what option they can't use 2014-05-22 05:26:13 +12:00
libraryaddict
720c4f3c66 Set the current version as 1.7 by default as a failsafe 2014-05-13 22:26:34 +12:00
libraryaddict
c5e579f608 Add helpful info for future reference 2014-05-13 22:26:10 +12:00
libraryaddict
96ecf57dd3 Revert "Add a . to the end of the bukkit version. Might help MCPC"
This reverts commit 23da447d7b.
2014-05-12 13:46:29 +12:00
libraryaddict
d81b1d8b7c Removed true/false for disguise commands 2014-05-09 16:35:24 +12:00
libraryaddict
23da447d7b Add a . to the end of the bukkit version. Might help MCPC 2014-05-09 03:02:26 +12:00
libraryaddict
19f895667a Give the update messages without exceptions 2014-05-05 19:53:16 +12:00
libraryaddict
5f69b11ab4 Add another check 2014-04-26 15:34:48 +12:00
libraryaddict
05a849a510 Just use the field name instead of regetting it 2014-04-23 11:49:24 +12:00
libraryaddict
62debf30c0 Don't permanantly store the game profile 2014-04-23 11:44:12 +12:00
libraryaddict
5413b4f852 Change grabSkull to getSkull 2014-04-20 02:13:56 +12:00
libraryaddict
c2e7aae201 Only allow refreshing entity is the entity is valid 2014-04-19 23:14:58 +12:00
libraryaddict
4e09a64abb Just make it a runnable. More convident for my plugins 2014-04-19 23:11:56 +12:00
libraryaddict
43e6e6cc36 Changed the names and some methods so its easily used by outside plugins 2014-04-19 18:22:27 +12:00
libraryaddict
74d5dbce9e Read desc
Added methods for other plugins to request GameProfiles
Changed GameProfiles to lookup UUID's with a different API as the old
one barfed
2014-04-19 08:14:02 +12:00
libraryaddict
b0f1a756cc Opps. Change a order 2014-04-18 19:52:54 +12:00
libraryaddict
4ebf7bdf51 Read desc
Added new permission system.
This should allow people to use * better
2014-04-18 19:50:48 +12:00
libraryaddict
5f03b75eb7 Refresh all disguises using that playername. Not just the caller 2014-04-16 16:26:19 +12:00
libraryaddict
1a10b6a774 Use nms to get the uuid 2014-04-15 02:54:04 +12:00
libraryaddict
8511911e7e Just get the playername exactly as it was fed. 2014-04-15 02:29:41 +12:00
libraryaddict
6ce864ae6c Remove old code for player disguises, support 1.7.9 code for disguises! 2014-04-15 02:26:31 +12:00
libraryaddict
5801356fbf Try avoid infinite loops when sending self disguise 2014-04-13 13:15:04 +12:00
libraryaddict
d4d657e53b My bad.. Didn't know GameProfiles were like this in 1.7 2014-04-12 17:19:46 +12:00
libraryaddict
3d60fe3c49 Allow players to retain their skins if they disguised as theirselves 2014-04-12 17:07:27 +12:00
libraryaddict
8c2261798e Allow disguises in 1.7.6 - 1.7.8 but no skins for players!! 2014-04-12 16:22:47 +12:00
libraryaddict
d53a34f5e4 When using disguise command. 'p' is a subsitute for player 2014-04-12 05:31:46 +12:00
libraryaddict
684d996754 Use randomly generated version 1 UUID's 2014-04-12 04:11:51 +12:00
libraryaddict
4e381f9d60 Remove the UUID fetcher code. Its useless now 2014-04-11 11:54:56 +12:00
libraryaddict
8ac42f97c1 Opps 2014-04-11 08:00:25 +12:00
libraryaddict
d20abcb223 Only return if they are still online. Fixes a bungeecord crash mostly 2014-04-11 07:57:23 +12:00
libraryaddict
7af61ee7df Opps. Now it grabs it from a online player 2014-04-11 04:57:14 +12:00
libraryaddict
4a63ff07ee Always send a empty string. Never lookup a offline players UUID 2014-04-11 04:45:55 +12:00
libraryaddict
0ebfe0a776 Don't use a random UUID. Should fix a protocol crash 2014-04-11 04:34:37 +12:00
libraryaddict
28f70c1963 Fixed self disguises and player disguise falling out of sync 2014-04-09 22:04:18 +12:00
libraryaddict
9e72e77c66 Read desc
Wait. If the disguise is not able to fetch a UUID. Don't bother making
the lookup happen again when someone sees it again.
Also, we only cares about one name. The name we called the fetcher with!
2014-04-09 04:16:49 +12:00
libraryaddict
5ab3061b20 Now use what we just added 2014-04-09 04:15:19 +12:00
libraryaddict
03acc45c6d Add class so I have soemthing to call to get the UUID 2014-04-09 04:14:59 +12:00
libraryaddict
dab0c5d3c5 Add method to get a UUID from a playername and store it for future reference 2014-04-09 04:14:18 +12:00
libraryaddict
1b2c2c4690 Change gameprofile to accept UUID's 2014-04-09 04:13:54 +12:00
libraryaddict
f3b3c15685 Disguises are now removed 30 ticks after death, and by sending entity remove packets 2014-04-04 18:54:40 +13:00
libraryaddict
3709db548a Fixed a bug with a existing method having the same name as a method with no args 2014-04-04 18:32:49 +13:00
libraryaddict
d16da8d26f Fix small text typos 2014-04-04 18:30:20 +13:00
libraryaddict
8f63a6eaa0 Removed Deprecated methods and added a few isAdult codes to zombie and ageable watchers 2014-04-03 02:49:33 +13:00
libraryaddict
25df368e9a Added new config options to keep a disguise 2014-04-03 02:39:52 +13:00
libraryaddict
167f14bfe8 Add support for disguiseNextEntity 2014-04-03 02:02:58 +13:00
libraryaddict
07bf03f154 Change the disguises to store UUID's. Not ints. 2014-04-03 01:54:36 +13:00
libraryaddict
b6fca92817 Change self disguises to use UUID's instead of integers as the key 2014-04-03 01:49:48 +13:00
libraryaddict
4bc09faa37 If packets are null. Remake the containers boy! 2014-03-24 01:52:39 +13:00
libraryaddict
b5c8d69398 I forget why we delay them. I think I had a really really good reason. 2014-03-24 01:45:31 +13:00
libraryaddict
1dbe7ad056 Check if the packets from transformPackets are null before attempting to use them 2014-03-24 01:45:02 +13:00
libraryaddict
a2e43e98be Don't use setPacket for the packet listeners. That was a bug. Packets are also no longer delayed by a tick 2014-03-23 17:57:57 +13:00
libraryaddict
ae874392ab Clone the packet, should resolve people hearing invisible disguises sounds 2014-03-06 05:13:17 +13:00
libraryaddict
cb58cdd8d3 Added convidence method for me to use in other plugins 2014-02-28 10:59:22 +13:00
libraryaddict
f14ee20e7c The disguised client no longer appears to mount a vechile if he is not living. This will bug out slightly however. 2014-02-10 12:15:58 +13:00
libraryaddict
306b246f76 Minor performance cleanup. 2014-02-07 13:50:40 +13:00
libraryaddict
8139267af8 Small change to a order 2014-01-31 23:00:24 +13:00
libraryaddict
a3297c918b Fix crashes as reported by andrewkm 2014-01-31 22:56:05 +13:00
libraryaddict
6c6d6c6fe2 Fixed disguises interfering with player movement when they appear 2014-01-29 15:57:17 +13:00
libraryaddict
85077227a2 Fixed the disguise blown message not being used 2014-01-21 14:05:32 +13:00
libraryaddict
ad109b0cda Tiny tiny code cleanup 2014-01-21 06:35:42 +13:00
libraryaddict
38ee3dc983 Read desc
Changed config methods to DisguiseConfig
Added a new config option to blow a disguise
2014-01-21 06:01:49 +13:00
libraryaddict
62c2050587 Maybe make the entire runnable this much less laggier. 2014-01-21 05:29:14 +13:00
libraryaddict
7da523c783 Fixed zombie walk sound being outdated 2014-01-20 14:19:34 +13:00
libraryaddict
1cea2e2163 Silly mojang and their silly bugs. Fixed right clicking not always working 2014-01-19 11:32:02 +13:00