mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2025-01-24 09:01:32 +01:00
ab272cc991
Upstream/An Sidestream has released updates that appears to apply and compile correctly This update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing. Tuinity Changes: cff9ec0 Updated Upstream (Paper) c3d5d24 Merge branch 'master' of https://github.com/Spottedleaf/Tuinity into ver/1.16.3 5df4a4f Reset the minimum ticket level for delaying unloads (#196) Origami Changes: 23fe2d3 Remove unnecessary map patch. Fixed in Paper faef256 Remove unused stream removal change 3f68c85 Update Paper Purpur Changes: 1720664 Updated Upstream (Tuinity) 6b2b137 Updated Upstream (Paper) afed247 Updated Upstream (Paper) a8a4826 Updated Upstream (Paper) ca4c502 Updated Upstream (Paper) 686ac09 Updated Upstream (Paper) 49dc495 Allow infinite and mending enchantments together
87 lines
2.4 KiB
Diff
87 lines
2.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: tr7zw <tr7zw@live.de>
|
|
Date: Sat, 1 Aug 2020 15:52:50 -0500
|
|
Subject: [PATCH] Add GameProfileLookupEvent
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
|
index 39a68715d66001c25627af4898f31cd97d94f097..3d14551ab545538b74379a20c92b2dfa40c4b3cc 100644
|
|
--- a/pom.xml
|
|
+++ b/pom.xml
|
|
@@ -52,6 +52,10 @@
|
|
<id>sonatype</id>
|
|
<url>https://oss.sonatype.org/content/groups/public/</url>
|
|
</repository>
|
|
+ <repository>
|
|
+ <id>mojang</id>
|
|
+ <url>https://libraries.minecraft.net/</url>
|
|
+ </repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
@@ -62,6 +66,13 @@
|
|
</pluginRepositories>
|
|
|
|
<dependencies>
|
|
+ <!-- Authlib for Gameprofiles -->
|
|
+ <dependency>
|
|
+ <groupId>com.mojang</groupId>
|
|
+ <artifactId>authlib</artifactId>
|
|
+ <version>1.5.25</version>
|
|
+ <scope>provided</scope>
|
|
+ </dependency>
|
|
<dependency>
|
|
<groupId>it.unimi.dsi</groupId>
|
|
<artifactId>fastutil</artifactId>
|
|
diff --git a/src/main/java/dev/tr7zw/yatopia/events/GameProfileLookupEvent.java b/src/main/java/dev/tr7zw/yatopia/events/GameProfileLookupEvent.java
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..ff58b8875a07b34de02b9b479ff3e6daf66d7832
|
|
--- /dev/null
|
|
+++ b/src/main/java/dev/tr7zw/yatopia/events/GameProfileLookupEvent.java
|
|
@@ -0,0 +1,45 @@
|
|
+package dev.tr7zw.yatopia.events;
|
|
+
|
|
+import java.util.UUID;
|
|
+
|
|
+import org.bukkit.event.Event;
|
|
+import org.bukkit.event.HandlerList;
|
|
+
|
|
+import com.mojang.authlib.GameProfile;
|
|
+
|
|
+public class GameProfileLookupEvent extends Event {
|
|
+ private static final HandlerList handlers = new HandlerList();
|
|
+ private GameProfile gameProfile = null;
|
|
+ private final UUID uuid;
|
|
+ private final String name;
|
|
+
|
|
+ public GameProfileLookupEvent(boolean async, UUID uuid, String name) {
|
|
+ super(async);
|
|
+ this.uuid = uuid;
|
|
+ this.name = name;
|
|
+ }
|
|
+
|
|
+ public GameProfile getGameProfile() {
|
|
+ return gameProfile;
|
|
+ }
|
|
+
|
|
+ public void setGameProfile(GameProfile gameProfile) {
|
|
+ this.gameProfile = gameProfile;
|
|
+ }
|
|
+
|
|
+ public UUID getUuid() {
|
|
+ return uuid;
|
|
+ }
|
|
+
|
|
+ public String getName() {
|
|
+ return name;
|
|
+ }
|
|
+
|
|
+ public HandlerList getHandlers() {
|
|
+ return handlers;
|
|
+ }
|
|
+
|
|
+ public static HandlerList getHandlerList() {
|
|
+ return handlers;
|
|
+ }
|
|
+}
|