Properly flag profile events as async as needed
Dieser Commit ist enthalten in:
Ursprung
731eab80ed
Commit
18ee843380
@ -1,4 +1,4 @@
|
|||||||
From 4639e25b3f054fe8f9c01911b5d8be559a77a643 Mon Sep 17 00:00:00 2001
|
From 4108c18902957c3f99f85ef35e3de5e3cce53c4a Mon Sep 17 00:00:00 2001
|
||||||
From: Aikar <aikar@aikar.co>
|
From: Aikar <aikar@aikar.co>
|
||||||
Date: Tue, 2 Jan 2018 00:31:08 -0500
|
Date: Tue, 2 Jan 2018 00:31:08 -0500
|
||||||
Subject: [PATCH] Fill Profile Property Events
|
Subject: [PATCH] Fill Profile Property Events
|
||||||
@ -12,10 +12,10 @@ This is useful for implementing a ProfileCache for Player Skulls
|
|||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/event/profile/FillProfileEvent.java b/src/main/java/com/destroystokyo/paper/event/profile/FillProfileEvent.java
|
diff --git a/src/main/java/com/destroystokyo/paper/event/profile/FillProfileEvent.java b/src/main/java/com/destroystokyo/paper/event/profile/FillProfileEvent.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..a893dda1
|
index 00000000..e8f6e7c1
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/event/profile/FillProfileEvent.java
|
+++ b/src/main/java/com/destroystokyo/paper/event/profile/FillProfileEvent.java
|
||||||
@@ -0,0 +1,71 @@
|
@@ -0,0 +1,72 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
||||||
+ *
|
+ *
|
||||||
@ -56,6 +56,7 @@ index 00000000..a893dda1
|
|||||||
+ private final PlayerProfile profile;
|
+ private final PlayerProfile profile;
|
||||||
+
|
+
|
||||||
+ public FillProfileEvent(@Nonnull PlayerProfile profile) {
|
+ public FillProfileEvent(@Nonnull PlayerProfile profile) {
|
||||||
|
+ super(!org.bukkit.Bukkit.isPrimaryThread());
|
||||||
+ this.profile = profile;
|
+ this.profile = profile;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
@ -89,10 +90,10 @@ index 00000000..a893dda1
|
|||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/event/profile/PreFillProfileEvent.java b/src/main/java/com/destroystokyo/paper/event/profile/PreFillProfileEvent.java
|
diff --git a/src/main/java/com/destroystokyo/paper/event/profile/PreFillProfileEvent.java b/src/main/java/com/destroystokyo/paper/event/profile/PreFillProfileEvent.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 00000000..e34312c1
|
index 00000000..f7b332e1
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/event/profile/PreFillProfileEvent.java
|
+++ b/src/main/java/com/destroystokyo/paper/event/profile/PreFillProfileEvent.java
|
||||||
@@ -0,0 +1,73 @@
|
@@ -0,0 +1,74 @@
|
||||||
+/*
|
+/*
|
||||||
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
+ * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License
|
||||||
+ *
|
+ *
|
||||||
@ -135,6 +136,7 @@ index 00000000..e34312c1
|
|||||||
+ private final PlayerProfile profile;
|
+ private final PlayerProfile profile;
|
||||||
+
|
+
|
||||||
+ public PreFillProfileEvent(PlayerProfile profile) {
|
+ public PreFillProfileEvent(PlayerProfile profile) {
|
||||||
|
+ super(!org.bukkit.Bukkit.isPrimaryThread());
|
||||||
+ this.profile = profile;
|
+ this.profile = profile;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
@ -167,5 +169,5 @@ index 00000000..e34312c1
|
|||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.15.1
|
2.14.3
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren