Commit Graph

709 Commits

Author SHA1 Message Date
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
riking
c4b48df0ee Apply unused config value, but keep behavior - looks broken 2014-06-03 18:42:26 -07:00
riking
a25bc46dea Move tryClose() method in order 2014-06-03 18:41:26 -07:00
riking
180998e5ca Refactor: tryClose() method 2014-06-03 18:41:26 -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
297dcd351f Check the current disguise is also the current flagwatcher 2014-06-04 12:42:49 +12:00
libraryaddict
72f8aad151 Put the strings in the same getter. It makes no difference and is cleaner 2014-06-04 12:42:49 +12:00
riking
b96337f29b Refactor out initConfig method 2014-06-03 17:42:13 -07:00
libraryaddict
6b18fafca4 Changed getOwner in tameable to return null 2014-06-02 23:39:31 +12:00
libraryaddict
04de21dba4 Changed getHorseArmor to return a itemstack, rename getHorseArmor to getHorseAmorAsInt and default owner name is null 2014-06-02 23:39:12 +12:00
libraryaddict
a9d5e8b109 Opps. Fixed the method calling itself instead of the proper API call 2014-06-02 23:28: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
4b55a24444 Fix AnimalColor getting not working properly 2014-06-02 08:56:18 +12:00
libraryaddict
d7010c6389 Add AnimalColor for Sheep color and wolf color 2014-06-02 08:56:07 +12:00
libraryaddict
e7301e06d0 Get rid of ridiculous message in disguiseclone command 2014-06-02 04:17:11 +12:00
libraryaddict
b999f48fef Added options to choose how long a disguise entity and disguise clone command is valid for 2014-06-02 04:14:35 +12:00
libraryaddict
4262221133 Add Disguise Clone command to clone a entity to look like them 2014-06-02 04:08:54 +12:00
libraryaddict
fb1f7a698c Added constructDisguise api to clone a entity into a disguise 2014-06-02 04:06:38 +12:00
libraryaddict
3426e0adb6 Changed "Can't use command" to follow one message 2014-06-02 03:52:54 +12:00
libraryaddict
6ac7106df7 Added method to get the disguisetype from a entity, including horses, zombie villager and wither skeleton 2014-06-02 03:27:14 +12:00
libraryaddict
41c565384d Read desc - Horse watcher
Fixed horse watching thinking to use Byte when its integers
Deprecated setHorseArmor(int)
Added setHorseArmor(ItemStack)
Fixed setCarryingChest(boolean) forcing true
2014-06-02 03:25:35 +12:00
libraryaddict
0625db63ff Return null instead of a empty string 2014-06-02 03:24:29 +12:00
libraryaddict
0afcef09b5 Check if custom name is null before assuming it is 2014-06-02 03:23:02 +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
93f807e6c9 Minor code cleanup 2014-05-31 05:34:34 +12:00
libraryaddict
2cb8d90158 Added new method so that you can't get a commentless config 2014-05-31 05:29:40 +12:00
libraryaddict
0e828eaf07 Opps. Fixed DisguiseType's with a _ not displaying properly in DisguiseEntity 2014-05-29 23:31:23 +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
b04f5faea9 Fix config being saved everytime and comments being wiped 2014-05-28 21:42:11 +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
7c12b2e0b3 Did I screw up isAdult.. Huh 2014-05-24 05:18:24 +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
0f09a92e75 Or rather, the opposite of it 2014-05-24 05:05:02 +12:00
libraryaddict
a4f9666cd0 Just use isOnline() 2014-05-24 05:04:12 +12:00
libraryaddict
81854db3d0 Exp packets shouldn't be in the velocity group 2014-05-24 05:02:17 +12:00
libraryaddict
999c80076d Tiny code cleanup 2014-05-24 05:01:51 +12:00
libraryaddict
bff21ab039 Allow sendData of multiple data 2014-05-23 16:51:00 +12:00
libraryaddict
9e4ad0ba8e Added tameable watcher 2014-05-23 16:40:22 +12:00
libraryaddict
f3a81a84a4 Don't bother checking if watcher is null. If they have a entity, they can't have a null watcher 2014-05-23 15:11:20 +12:00
libraryaddict
567a84b8dc Don't do checks if the player is self disguised. Perverts see everything anyways unless we want to show em something special 2014-05-23 15:07:20 +12:00
libraryaddict
1e12939d87 setMaxHealth now sends the packet as well 2014-05-23 15:06:52 +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
eb712a06b9 Clamp the slime size value, don't let them do negative sizes. 2014-05-23 11:31:36 +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
b44aba87d4 Give errors when they attempt to use misc disguise on living entities with commands 2014-05-23 08:22:07 +12:00
libraryaddict
72d07e7f62 Added a slew of options to disable packets for performance gains 2014-05-23 08:14:46 +12:00
libraryaddict
ecae8b3400 Do sub-sections when saving default config 2014-05-23 08:00:10 +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
0b5e20180d Fixed disguise entity command throwing errors. Cleaned up the messages moar 2014-05-14 10:54:44 +12:00
libraryaddict
3604c83797 Ensure they use the right disguise for the disguisetype 2014-05-14 10:43:13 +12:00
libraryaddict
8db338f533 Deprecate the replaceSounds and add new constructors for miscDisguise 2014-05-14 10:34:41 +12:00
libraryaddict
b7dfb2c66b Changed disguise entity command to do better messages 2014-05-13 22:32:15 +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
514ad74db3 Why bother pretending its not dirty 2014-05-09 16:31:05 +12:00
libraryaddict
578f2ce504 Add disguiseToPlayers player... to DisguiseAPI. I can't add List<> because of conflicts 2014-05-09 16:28:35 +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
299347d81c Change a message slightly from slap to right click 2014-05-05 21:34:19 +12:00
libraryaddict
c9b9710a78 Don't allow them to set the watcher willy nilly without verifiying it 2014-05-05 19:59:47 +12:00
libraryaddict
19f895667a Give the update messages without exceptions 2014-05-05 19:53:16 +12:00
libraryaddict
6c0a08e95c Typo count by prplz. Somehow doesn't seem to have anyone complaining about it.. 2014-05-02 18:22:09 +12:00
libraryaddict
ebefbfe2c7 Wolf is now tamed if you set the collar color 2014-05-02 16:08:27 +12:00
libraryaddict
080288d2bf Small change for internal debug 2014-04-26 15:42:35 +12:00
libraryaddict
5f69b11ab4 Add another check 2014-04-26 15:34:48 +12:00
libraryaddict
60326253a2 Change the disguiseNextEntity to return a int 2014-04-24 09:50:26 +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