Commit Graph
79 Commits
Author SHA1 Message Date
BillyGalbreath 2969d4224f Left handed API (#6775) 2021-10-19 20:46:52 -07:00
BillyGalbreath 42293b52e2 Honor spigot.yml setting log-villager-deaths (#6057)
cat note: giggity.
2021-07-01 22:28:31 -05:00
BillyGalbreath 83bbb318a6 [ci skip] Very important bug fix :O (#5934) 2021-06-21 09:36:53 -05:00
BillyGalbreath 5166ece434 Permission message upgrades (#5932)
* Permission message upgrades

* Allow for blank lines after split

* the future is now :o
2021-06-21 09:07:21 -05:00
BillyGalbreath d9aca71bc7 Reset villager inventory on cancelled pickup event (again) (#5766) (Fixes #5765) 2021-06-01 22:11:13 -05:00
BillyGalbreath 9926a78782 Reset villager inventory on cancelled pickup event (#5738) 2021-05-28 08:17:05 -05:00
BillyGalbreath cf323f5eaa Allow adding items to BlockDropItemEvent (#5093) 2021-01-30 10:09:13 -06:00
BillyGalbreath 3ad49543fd EntityMoveEvent (#4614) 2021-01-28 13:26:20 -06:00
BillyGalbreath 896033a959 Fix MC-181190 curing zombie villager discount exploit (#4871) 2020-12-08 21:56:22 -06:00
BillyGalbreath 2271d88dc1 Fix per-world settings not reloading (#4756) 2020-11-11 22:58:42 -06:00
BillyGalbreath 331d1ed71c Entity#isTicking (#4612) 2020-10-03 22:05:33 -05:00
BillyGalbreath 5f0de8fc57 Fix MC-125757 (#3859) 2020-07-09 19:40:37 -05:00
BillyGalbreath 3aa6d3b3c0 Implements #3761 - Add entity liquid API (#3762) 2020-07-05 02:00:09 -05:00
BillyGalbreath b7c653f532 Add PrepareResultEvent (#3776)
Adds a new event for all crafting stations that generate a result slot item

Anvil and Grindstone now extend this event
2020-07-04 22:36:46 -05:00
BillyGalbreath 3de79cd7c3 Report proxy onlinde mode to bstats as online (#3093) 2020-07-04 21:59:25 -05:00
BillyGalbreath 3cf7163de4 Fix /plugins list not alphabetical to players (#3790) 2020-07-04 20:04:35 -05:00
BillyGalbreath 7de9b9d112 Update itemstack legacy name and lore (#3741) 2020-07-04 19:47:24 -05:00
BillyGalbreath fe730b5a87 Add phantom creative and insomniac controls (#3222) 2020-04-25 15:33:18 -05:00
BillyGalbreath c8367bb129 Add tick times API and /mspt command (#3102) 2020-04-11 00:52:17 -05:00
BillyGalbreath 94476a6910 Fix NPE on GUI during Windows Lock Screen (#3023) 2020-03-13 02:02:30 -05:00
BillyGalbreath 1b0f598ccd Make the GUI graph fancier (#2928) 2020-02-18 22:52:18 -06:00
BillyGalbreath d8cd7800f5 Add option to nerf pigmen from nether portals (#2937)
* Add option to nerf pigmen from nether portals
2020-02-18 19:42:05 -06:00
BillyGalbreath b8d82b73ea Entity Jump API (#1587) 2020-02-10 22:28:39 -06:00
BillyGalbreath de672475b1 Add ThrownEggHatchEvent (#1982)
Add a new event similar to PlayerEggThrowEvent but without the Player
requirement (dispensers can throw eggs to hatch as well).
2020-02-09 00:32:29 -06:00
BillyGalbreath c2f18ccc45 Fix #2906 - Bees get gravity in void - Fixes MC-167279 (#2912) 2020-01-26 17:59:43 -06:00
BillyGalbreath 6e05de0542 Fix startup errors when double clicking jar (#2903) 2020-01-24 17:06:37 -06:00
BillyGalbreath bd700c2f78 Fix errors on startup when double clicking jar (#2901) 2020-01-24 13:13:59 -06:00
BillyGalbreath 17867b12b2 Add effect to block break naturally (#2819) 2020-01-18 20:10:06 -06:00
BillyGalbreath fa67beb728 Prevent bees loading chunks checking hive position (#2828) 2020-01-09 19:28:29 -06:00
BillyGalbreath 5c52367f57 MC-145656 Fix Follow Range Initial Target (#2778) 2019-12-19 13:03:16 -06:00
BillyGalbreath aa353d9814 Add option to disable pillager patrols (#2626) 2019-11-24 01:10:15 -06:00
BillyGalbreath 56994283f5 Fix stuck in sneak when changing worlds (MC-10657) (#2627) 2019-11-24 00:02:47 -06:00
BillyGalbreath 36cc95758b Fix zero-tick instant grow farms MC-113809 (#2559) 2019-09-22 23:07:01 -05:00
BillyGalbreath 36a04c3729 Fix enderpearl item use cooldown (fix #2412) (#2413) 2019-08-04 21:15:53 -05:00
BillyGalbreath a54890fe8c Fix #2232 - Passive mobs don't move (#2253) 2019-06-28 05:33:17 -05:00
BillyGalbreath d78b58126a Add more Zombie API (#1547) 2018-11-25 11:51:11 -06:00
BillyGalbreath f2346bfd49 Use EntityTypes for living entities (#1533) 2018-10-24 15:26:00 -05:00
BillyGalbreath 71cf04c13d Fix #1604 (#1605) 2018-10-21 14:39:21 -05:00
BillyGalbreath 4a5ad2e1d2 Add more Witch API (#1564) 2018-10-18 22:24:09 -05:00
BillyGalbreath 83e66d52da Here's Johnny! (#1563)
Adds Johnny API to Vindicator
2018-10-12 02:09:53 -05:00
BillyGalbreath f4da2d1b05 Add sun related API (#1546)
These methods are used internally throughout the game for things like spawning mobs during day/night only or making them burn in daylight, etc. Now exposed for plugin usage.
2018-10-11 20:42:49 -05:00
BillyGalbreath 35e512ae34 Turtle API (#1509) 2018-10-10 22:40:49 -05:00
BillyGalbreath e43da4fba9 Check Drowned for Villager Aggression Config (#1560) 2018-10-10 22:01:14 -05:00
BillyGalbreath 7f7b6df9bd Add LivingEntity#getTargetEntity (#1467) 2018-10-08 20:14:55 -05:00
BillyGalbreath 92e277e36b Fix weird issues with Creeper ignite state (#1534) 2018-10-07 11:58:09 -05:00
BillyGalbreath 2af722672a Fix timer in slime AI (#1548)
Seems my original pull for this created an unseen bug where the target timer would never run out (the slime would not "forget" it's target over time). Went ahead and fixed that, and made the code more legible by adding the imports.
2018-10-07 11:57:52 -05:00
BillyGalbreath f0826f8994 Allow setting the vex's summoner (#1545) 2018-10-06 22:31:21 -05:00
BillyGalbreath cd4848b2e6 Dont strip explicit leading color codes in chat components (#1512) 2018-10-02 09:21:12 -05:00
BillyGalbreath 1cfe56c842 Fix cancelled lootables (#1510) 2018-09-29 20:57:59 -05:00
BillyGalbreath c777e6f255 Fix turtle lag (for real this time) (#1503)
Amends #1502, to further fix #1501
2018-09-28 20:27:40 -05:00
BillyGalbreath 93cbf5e356 Fix turtle lag (#1502)
Fix #1501

I just added a condition check to not start a new pathfinder goal if the turtle already has one set.

Needs more testing.

![Timings Comparison](https://i.imgur.com/p9eJQSo.png)
2018-09-28 12:58:06 -05:00
BillyGalbreath f2d9f62537 Honor EntityAgeable#ageLock (#1481)
* test

* Obfuscation helper

* Fix #1459
2018-09-25 09:54:06 -05:00
BillyGalbreath 6d7372445c Expose attack cooldown methods for Player (#1412) 2018-09-22 22:03:53 -05:00
BillyGalbreath 35d16a01a9 Add creative-arrow-despawn-rate (#1411)
* Add creative-arrow-despawn-rate
2018-09-22 21:48:30 -05:00
BillyGalbreath c71f4578ab Add obfuscation helper (aikar's request) (#1468) 2018-09-22 21:28:16 -05:00
BillyGalbreath d28aadb2bd Allow chests to be placed with NBT (#1425)
This restores vanilla behavior of allowing placed chests to retain any Block Entity Tag data.

Upstream added filtering to chests, breaking vanilla behavior, and preventing use of loot table chests as a reward mechanism.

Upon review, we can find no security risk in allowing players to place a chest with NBT data, as Spawn Eggs, Minecarts, command blocks etc all have their own checks.

Additionally, survival mode players, non op players can not create these items anyways. If a player has Creative or Op, they already have high levels of access.

Plus, Chests aren't the only inventory that could have free form items, so this filter was insufficient anyways.
2018-09-09 11:53:23 -05:00
BillyGalbreath 3d3333ff23 Fix #1420 (#1421) 2018-09-07 19:03:38 -05:00
BillyGalbreath 1ee368448e Add ray tracing methods to LivingEntity (#1410)
This method will return the Block a player is looking at while taking into consideration the AABB of each block in the path.

For example, you can look through the 1/4 space of air in a Stair block and get the block behind it instead of the Stair block you are looking past.
2018-09-03 18:59:54 -05:00
BillyGalbreath 7bc21c03e9 Fix explosions not doing damage to entities (#1380) 2018-08-27 12:59:07 -05:00
BillyGalbreath f692535133 Add More Creeper API (#1372) 2018-08-27 02:01:09 -05:00
BillyGalbreath f2e8288481 Add PhantomSpawnEvent (#1375) 2018-08-27 01:51:20 -05:00
BillyGalbreath 67eef6701b 1.13: Slime Patherfinder Events (#1246)
Replaces PR #1161 for 1.13

Resolves #930 

Adds new slime pathfinder related events. All events can be cancelled.
- `SlimePathfindEvent` is the base event of all added events. Cancelling this event will cancel all pathfinders.
- `SlimeWanderEvent` is called when slimes wander around by either swimming or moving/jumping forward. Cancelling this event will prevent slimes from moving around and jumping, but they will still look around and target players.
- `SlimeSwimEvent`is called when slimes are swimming in water/lava. Cancelling will prevent the slimes from moving/jumping in water/lava.
- `SlimeChangeDirectionEvent` is called when a slime changes directions. It contains the new `yaw` position the slime wants to change to, and it can be set to another value. Cancelling this event will prevent slimes from changing directions (except for when targeting players).
- `SlimeTargetLivingEntityEvent` is called when a slime targets a player. NMS uses EntityLiving here so it is named this. Contains the LivingEntity the slime has targeted. Cancelling this event will prevent the slime from targeting the entity and will make it lose current focus.

Adds `Slime#canWander()` and `Slime#setWander(boolean)` for a more persistent control (does not persist server restarts) over all 4 pathfinder types without the spammy event having to be cancelled a bajillion times a second.

Video demonstration: https://youtu.be/8hcLqazmO28

Test plugin: https://pastebin.com/cFgcgdWV
2018-08-24 09:40:14 -05:00
BillyGalbreath 7d3b4f409c Fix MC-124320 (#1369) 2018-08-23 12:02:57 -05:00
BillyGalbreath 66d52954dc 1.13: Player launch projectile event (#1249)
Replaces PR #1193 for 1.13

I'm pretty sure I got all player launched projectiles (except arrows). Let me know if I missed any.

This fixes a use-case specific issue that was discovered [here](https://www.spigotmc.org/threads/projectilehitevent-doesnt-work-in-survival-mode.327097/page-2#post-3059433). I have a use-case example a few posts down, [here](https://www.spigotmc.org/threads/projectilehitevent-doesnt-work-in-survival-mode.327097/page-2#post-3060204).
2018-08-17 16:55:40 -05:00
BillyGalbreath 6dd8604bfd [1.13] Hand for bucket events (#1300)
This adds the `getHand()` method to the `PlayerBucketEvent`s
2018-08-07 09:44:44 -05:00
BillyGalbreath 720f7d920e SkeletonHorse Additions (#1283) 2018-08-04 20:12:41 -05:00
BillyGalbreath 28d01d85cc 1.13: EnderDragon Events (#1247)
Replaces PR #1185 for 1.13

Add some new cancellable enderdragon events dealing with its fireball shooting and the areaeffectcloud it spawns. Based on [talking with someone with a specific use-case](https://www.spigotmc.org/threads/cancel-projectilehitevent.326466/) this was [confirmed to work](http://i.imgur.com/ezlfpKC.png) for them in PM.
2018-07-28 01:03:10 -05:00
BillyGalbreath 63bf2ee267 Add "getNearbyXXX" methods to Location (#1160) 2018-06-20 20:30:09 -05:00
BillyGalbreath 283a4b7d60 [CI-SKIP] Clarify Event#callEvent() JavaDoc (#1158) 2018-06-18 15:42:39 -05:00
BillyGalbreath 4a55e34625 Make shield blocking delay configurable (#1154)
Resolves #1153
2018-06-16 14:54:35 -05:00
BillyGalbreath b36c43bc6b [CI-SKIP] Add BillyGalbreath to MIT list (#1037) 2018-03-09 11:00:48 -06:00
BillyGalbreath b89d7add43 PlayerAdvancementCriterionGrantEvent (#978) 2018-01-21 12:23:34 -06:00
BillyGalbreath 19afa58c90 Ocelot despawns should honor nametags and leash (#821) 2017-08-07 22:26:44 -05:00
BillyGalbreath 568f82f3f8 Reset spawner timer when spawner event is cancelled (#819) 2017-08-07 22:25:59 -05:00
BillyGalbreath a86bd09bb7 PlayerAttemptPickupItemEvent (#732) 2017-06-11 19:46:11 -05:00
BillyGalbreath 899f4969c1 PlayerPickupItemEvent#setFlyAtPlayer (#683)
* PlayerPickupItemEvent#setFlyAtPlayer
2017-06-11 19:43:59 -05:00
BillyGalbreath e91f3880b7 EntityPickupItemEvent (#679)
EntityPickupItemEvent
2017-06-11 19:42:01 -05:00
BillyGalbreath d1f99dde16 Item#canEntityPickup (#680)
Item#canEntityPickup
2017-06-11 19:40:42 -05:00
BillyGalbreath 5d4b4bd35d Add fromBottle flag to Experience Orbs (#584)
* Add fromBottle flag to Experience Orbs
2017-01-20 09:01:53 -06:00