mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-22 00:09:20 +00:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@4e1a255 Update try catch for command handling PaperMC/Paper@e382e68 Fix 0 yield on explosion events PaperMC/Paper@35b2c6e Use dropped item for stats info (#12747) PaperMC/Paper@bd79e20 [ci skip] PluginManager#getPlugin and PluginManager#isPluginEnabled are case-insensitive (#12723) PaperMC/Paper@57c202e Allow adventure nbt codec to parse all tags PaperMC/Paper@4d854e6 Disable MC-163962 fix by default PaperMC/Paper@dda39a0 1.21.7-rc2 PaperMC/Paper@7f60924 Configuration API (#12301) PaperMC/Paper@371a422 Remove a bunch more experimental annotations (#12712) PaperMC/Paper@a9f74cb Readd dropped diff during 1.21.6 PaperMC/Paper@4045339 1.21.7 PaperMC/Paper@4c47c76 Update DataConverter constants for 1.21.7 PaperMC/Paper@9686f8b Enable obfuscation mappings for 1.21.7 (#12770) PaperMC/Paper@723510f Make warning of PlayerLoginEvent use unique plugin names (#12772) PaperMC/Paper@4cdcf00 Only namespaced reload (#12773) PaperMC/Paper@00e79df Fix wrong size in InventoryType#PLAYER (#12758) PaperMC/Paper@6e021c8 Fix CraftContainer#getNotchInventoryType detection of player inventory (#12751) PaperMC/Paper@5661fbb Add registry builder for Instrument (#12682) PaperMC/Paper@51d28af [ci skip] Typo in CartographyInventory (#12777) PaperMC/Paper@6ea679e Allow listening to plugin messages during configuration phase (#12775) PaperMC/Paper@c3be00f Always call plugin message dispatch on PlayerConnection PaperMC/Paper@3fec37a Move the double call into the dispatch method PaperMC/Paper@108255c Reduce PlayerLoginEvent alt behavior nag for now (#12782) PaperMC/Paper@2141ca5 Port plugins command to brigadier (#12632)
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samsuik <kfian294ma4@gmail.com>
|
|
Date: Tue, 21 Sep 2021 23:54:25 +0100
|
|
Subject: [PATCH] Client Visibility Settings API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
|
index 8127c961793c5a5332fbb66fa95b8a0bf3fdc4df..3b51a842e85425c84fc7d8e52f13282d2cf6b3b5 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -70,6 +70,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
|
|
void setTrackingRangeModifier(double mod);
|
|
// Sakura end - entity tracking range modifier
|
|
+ // Sakura start - client visibility settings api
|
|
+ /**
|
|
+ * Server-side api to disable sending visual effects to the client.
|
|
+ *
|
|
+ * @return visibility api
|
|
+ */
|
|
+ me.samsuik.sakura.player.visibility.VisibilitySettings getVisibility();
|
|
+ // Sakura end - client visibility settings api
|
|
|
|
// Paper start
|
|
@Override
|