Commit Graph

836 Commits

Author SHA1 Message Date
libraryaddict
288882a427 Update relevent methods 2014-07-14 12:42:45 +12:00
libraryaddict
b859ea28f9 Added setShaking to zombie watcher 2014-07-14 12:42:03 +12:00
libraryaddict
714eaaf0cf Actually getValue isn't that great a idea 2014-07-14 12:41:55 +12:00
libraryaddict
90a92e8ce1 Minor fixes 2014-07-14 12:27:39 +12:00
libraryaddict
56f3c23949 Add setTargets to wither watcher 2014-07-14 12:25:48 +12:00
libraryaddict
7f27835c07 Add int[] to valid params in disguise commands 2014-07-14 12:25:37 +12:00
libraryaddict
dcd85b88ea Minor fix to previous commit 2014-07-14 12:25:21 +12:00
libraryaddict
696f952c4e Change getValue to use generics so I don't have to cast 2014-07-14 12:22:06 +12:00
libraryaddict
7d0175c563 Add witchwatcher (isAggressive and setAggressive) 2014-07-14 12:13:30 +12:00
libraryaddict
29bae6b67a Fix it casting to integer when its a byte 2014-07-13 07:27:14 +12:00
MeltedLux
e95134d1b9 Damn spelling 2014-07-12 19:39:45 +01:00
libraryaddict
6696060105 Don't blow disguises if the event was cancelled 2014-07-12 08:52:17 +12:00
libraryaddict
98681cd93b Fix Aggressive misspelling 2014-07-12 07:07:54 +12:00
libraryaddict
5703d5995d Fix isAgressive in enderman watcher 2014-07-12 07:06:23 +12:00
libraryaddict
3d44760b1b Changed TargetedDisguise to have its methods return disguises
This finishes the commits which allows you to now use a disguise builder
while breaking tons of plugins using Lib's Disguises.
In retrospect. I should make a DisguiseBuilder instead.
2014-07-11 17:16:19 +12:00
libraryaddict
54d785b680 Break all the plugins!
Changes all methods returning void in the Disguise objects to return the
Disguise itself.
The methods startDisguise and removeDisguise now return a boolean which
indicates the success of the method called.
Added stopDisguise as its rather obvious when compared to startDisguise
However that method merely calls removeDisguise
2014-07-11 17:07:47 +12:00
libraryaddict
bb442fb3a5 Fix a minor error with the previous commit 2014-07-11 16:37:53 +12:00
libraryaddict
0791461629 Change setSkin in playerDisguise to return the disguise 2014-07-11 16:37:34 +12:00
libraryaddict
d37acf8f84 Breaks existing API usage for setEntity to return a disguise object 2014-07-11 16:36:47 +12:00
libraryaddict
a34f8e1e7e Remove the 'command' from the permission check 2014-07-11 11:25:55 +12:00
libraryaddict
07bcf29862 Opps. Check if its NOT in the list 2014-07-10 12:50:19 +12:00
libraryaddict
7072b29b28 Small fix I forgot how to understand 2014-07-08 10:34:00 +12:00
libraryaddict
f5a9e20b6f Add in new perms where you can define valid playernames and misc ids and data. Also sanitize input
Now lets you use material names and durability as well
2014-07-08 10:06:23 +12:00
libraryaddict
6e7c76cdf5 Add info on what the id and data combo's do 2014-07-08 09:35:17 +12:00
libraryaddict
8a3dd58559 Don't do y offset if its a sleeping player (looks ugly) 2014-07-08 06:09:37 +12:00
libraryaddict
1df5f6723e Only resend the player disguise if there is changes that will be noticed. 2014-07-03 21:30:09 +12:00
libraryaddict
8410904f94 Return a self constructed gameprofile if profile lookup failed. 2014-07-03 21:21:40 +12:00
libraryaddict
8f2c5d6e54 Don't add potioneffect when watcher already has a potion effect. Don't compare the length of custom name. But check if its null 2014-07-03 18:34:06 +12:00
libraryaddict
aed3bbddf4 Simple formatting 2014-06-30 15:12:24 +12:00
libraryaddict
6742afdaec Plugin is no longer on BukkitDev 2014-06-29 17:07:59 +12:00
libraryaddict
a89a1f88d7 Add support for permissions without a underscore 2014-06-24 14:26:45 +12:00
riking
9abe0bfeed Use correct link for ProtocolLib on Forge 2014-06-23 18:33:48 -07:00
libraryaddict
c61e45c062 Nice going mojang. Can't clamp your yaw to -360 to 360 2014-06-22 01:42:58 +12:00
libraryaddict
29e1bf67de Sort fields by name 2014-06-21 09:48:20 +12:00
libraryaddict
c7127f56f5 Clean up the ItemFrameWatcher and add a small description to config.yml 2014-06-21 09:48:00 +12:00
libraryaddict
bcee5d9677 Fix item_frame disguise 2014-06-21 09:37:53 +12:00
libraryaddict
46773b7b39 Tracker something 2014-06-21 09:37:38 +12:00
libraryaddict
7453053131 Finish up the refresh tracker. Its retarded and I don't want to look at it. 2014-06-21 08:01:42 +12:00
libraryaddict
992e416edf Send self disguise in the same tracker refresh entry.. 2014-06-21 07:58:37 +12:00
libraryaddict
bd317b4cce Don't silently fail when a disguisetype has a null entitytype 2014-06-21 07:29:34 +12:00
libraryaddict
dea2dc856a Why was this a Integer.. 2014-06-21 07:28:11 +12:00
libraryaddict
c093a4c734 Two simple checks for self disguises 2014-06-21 07:13:07 +12:00
libraryaddict
01023a29ed Stupid hashsets and hashmaps and their unability to equalsignorecase on strings 2014-06-21 02:12:32 +12:00
libraryaddict
dc6348cf38 Get rid of the silly getData must return Integer 2014-06-19 10:01:08 +12:00
libraryaddict
410f71044f Forgot this case 2014-06-19 09:29:37 +12:00
libraryaddict
2c905e38b2 Add the switch cases for MINECART_COMMAND 2014-06-19 09:26:54 +12:00
libraryaddict
e40cd3d60e Add DisguiseType MINECART_COMMAND 2014-06-19 09:24:57 +12:00
libraryaddict
fb3b7d86ee Deprecate minor capital spelling mistake in minecart watcher 2014-06-18 04:10:04 +12:00
Kane York
c897e05d33 Add dual-licensing notice to Forge mapping code
BSD-licensed version here: https://gist.github.com/riking/2f330f831c30e2276df7

As a note, @libraryaddict is not bound by the BSD license, but rather by the implicit license granted from me sending a pull request. Therefore, a LICENSE file is not needed in the distributed jar.
2014-06-15 21:10:30 -07:00
libraryaddict
afaf6c16e6 Only send the teleport packet if its a painting disguise 2014-06-16 04:56:00 +12:00
libraryaddict
eb78492fcf Change MiscDisguise thing to Integer instead of int so I can use nulls, this lets me know if a int was set. 2014-06-16 04:29:18 +12:00
libraryaddict
8363b23deb I don't think I need to cancel riding packets. Might be 1.6.4 specific. Anyone care to test? 2014-06-15 21:04:22 +12:00
libraryaddict
d93f689356 Item_Frame is NOT a valid disguise 2014-06-15 20:45:13 +12:00
libraryaddict
ac391d9f07 Just use the methods that I already made 2014-06-15 20:39:35 +12:00
libraryaddict
e9fd160be8 Fixed a missed typo where disguisenextentity comes up with weird disguise names 2014-06-15 20:38:13 +12:00
libraryaddict
20b3d02f76 Change self disguises to globally use the entity id -1 for performance and usage in other plugins 2014-06-15 20:12:07 +12:00
libraryaddict
13cf2f5e85 Removed method, make sure that playerNames are case insensitive when looking them up 2014-06-15 19:46:37 +12:00
libraryaddict
7f5a6d9dc4 Tiny cleanup in ReflectionManager 2014-06-15 19:40:10 +12:00
libraryaddict
bdbaa95fae Change equipment option to screw up people who disabled it 2014-06-15 19:38:11 +12:00
libraryaddict
8401f9b091 Add and deprecate Equipment packets config setter option 2014-06-15 19:37:00 +12:00
libraryaddict
0496134dee Formatting by project 2014-06-15 19:35:47 +12:00
libraryaddict
1edc05d9ff Loop over entities with numbers instead of iterator (CraftBook needs to improve their coding) 2014-06-15 19:33:59 +12:00
libraryaddict
1e607d6bb6 Merge pull request #36 from riking/cauldron
Cauldron Compatibility
2014-06-15 19:31:48 +12:00
riking
d1253467a8 Remove debugging throws 2014-06-14 22:45:01 -07:00
riking
7c20a7c3a3 More ReflectionManager stuff 2014-06-14 22:38:16 -07:00
riking
3d64a132a9 More Forge compat changes 2014-06-14 20:19:56 -07:00
libraryaddict
69ea8ed2a0 Change listener to monitor and make sure that PlayerPortalEvent isn't cancelled before removing disguises 2014-06-15 15:00:18 +12:00
libraryaddict
b9087f6fc3 Remove two imports 2014-06-15 14:58:39 +12:00
libraryaddict
7c5a7b0225 Move Disguise and Undisguise events into the Disguise methods instead of the api calls 2014-06-15 14:57:06 +12:00
libraryaddict
264b2ef8a2 Tell the user how many options they ignored. 2014-06-15 14:52:45 +12:00
riking
0c84316121 Prepare to parse the method searge statements 2014-06-14 19:30:47 -07:00
libraryaddict
fd8fa08c6e Merge pull request #34 from riking/patch-1
Restore single-star from 55f2eb6dca
2014-06-15 13:35:00 +12:00
riking
4ddded6b06 Enquipment -> Equipment 2014-06-14 18:09:14 -07:00
riking
2b86c98fbb Seriously, wtf? Removed reflection on Bukkit API. 2014-06-14 18:06:15 -07:00
riking
48056c735f More getNmsField/Method calls 2014-06-14 16:06:02 -07:00
riking
2566d8824e Create getEntityTrackerEntry() 2014-06-14 15:52:11 -07:00
riking
d7a903c86e Forge compatibility WIP 2014-06-14 14:58:49 -07:00
riking
d1e162bb97 Restore single-star from 55f2eb6dca 2014-06-14 10:22:28 -07:00
riking
4766d2a0d1 Some wording cleanup 2014-06-14 10:18:52 -07:00
riking
c1b5780d77 Use new-style runTask methods 2014-06-14 10:18:52 -07:00
libraryaddict
4c14e6b72a Make it red.. Ladies love red 2014-06-14 21:16:11 +12:00
libraryaddict
21d4bba9f4 Max health is now correctly set on entity spawn 2014-06-14 21:11:37 +12:00
libraryaddict
e940a9e0e9 Allow boolean params to not require a argument to be true 2014-06-14 20:55:28 +12:00
libraryaddict
61d8ca7b42 Let people see only options they can use 2014-06-14 20:45:19 +12:00
libraryaddict
55f2eb6dca Let ops use all options 2014-06-14 20:35:42 +12:00
libraryaddict
832a2a4d30 Bat shall no longer sink slowly 2014-06-14 20:34:18 +12:00
libraryaddict
3d26348b69 Why set it to the same values as default 2014-06-14 20:33:10 +12:00
libraryaddict
b4f1569b95 Don't send bat if bat aint flying 2014-06-14 20:32:47 +12:00
libraryaddict
c145ae5106 Add new disguise option to remove disguises on world change 2014-06-14 20:27:48 +12:00
libraryaddict
f777b33917 Read desc
Change all the permissions code to a 'better' version
By default people can no longer use options without the option perm or *
DisguiseType returns is now nicer looking
2014-06-14 20:16:48 +12:00
libraryaddict
4d1092f41d Rearrange this 2014-06-12 18:21:20 +12:00
libraryaddict
cddfbafb3d Don't include entity class in usable params, allow people to use a EntityType as well 2014-06-12 18:15:41 +12:00
libraryaddict
014c34ce0e Add in Item height as well, prevents floating disguises when a item is disguised 2014-06-12 18:06:07 +12:00
libraryaddict
0056898e01 Also work for EntityType for DisguiseRadius 2014-06-12 18:05:34 +12:00
libraryaddict
85ff3769cf Don't attempt to use EntityType's that are null 2014-06-10 12:42:53 +12:00
libraryaddict
53754ee684 Cleaner 2014-06-10 12:42:00 +12:00
libraryaddict
572d94219d Fix Horse not being found in old versions 2014-06-10 12:31:36 +12:00
libraryaddict
4b06deec1b Fix the id and data crap so its no longer broken 2014-06-06 14:16:16 +12:00
libraryaddict
7b5d998e25 Set minecart hoppers minecart type in disguisetype 2014-06-06 14:16:02 +12:00
libraryaddict
6bfa4b3d66 Set the miscDisguise id and data 2014-06-06 13:59:22 +12:00