mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-12 18:57:28 +00:00
Update Hytale to target 2026.03.26-89796e57b
This commit is contained in:
5 files changed
+7
-6
No files matched your search
+1
-1
@@ -13,7 +13,7 @@ dependencies {
|
||||
implementation 'com.google.guava:guava:19.0'
|
||||
implementation 'com.google.code.gson:gson:2.7'
|
||||
|
||||
compileOnly 'com.hypixel.hytale:Server:2026.02.17-255364b8e'
|
||||
compileOnly "com.hypixel.hytale:Server:${hytaleVersion}"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hytaleVersion=2026.03.26-89796e57b
|
||||
@@ -10,7 +10,7 @@ dependencies {
|
||||
implementation project(':api')
|
||||
implementation project(':common:loader-utils')
|
||||
|
||||
compileOnly 'com.hypixel.hytale:Server:2026.02.17-255364b8e'
|
||||
compileOnly "com.hypixel.hytale:Server:${hytaleVersion}"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
@@ -6,7 +6,7 @@ dependencies {
|
||||
implementation project(':api')
|
||||
implementation project(':common:loader-utils')
|
||||
|
||||
compileOnly 'com.hypixel.hytale:Server:2026.02.17-255364b8e'
|
||||
compileOnly "com.hypixel.hytale:Server:${hytaleVersion}"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
+3
-3
@@ -36,9 +36,9 @@ import me.lucko.luckperms.common.locale.Message;
|
||||
import me.lucko.luckperms.common.locale.TranslationManager;
|
||||
import me.lucko.luckperms.common.model.User;
|
||||
import me.lucko.luckperms.common.plugin.util.AbstractConnectionListener;
|
||||
import me.lucko.luckperms.hytale.HytaleSenderFactory;
|
||||
import me.lucko.luckperms.hytale.LPHytalePlugin;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
@@ -99,7 +99,7 @@ public class HytaleConnectionListener extends AbstractConnectionListener {
|
||||
|
||||
Component reason = TranslationManager.render(Message.LOADING_DATABASE_ERROR.build());
|
||||
e.setCancelled(true);
|
||||
e.setReason(PlainTextComponentSerializer.plainText().serialize(reason));
|
||||
e.setReason(HytaleSenderFactory.toHytaleMessage(reason));
|
||||
this.plugin.getEventDispatcher().dispatchPlayerLoginProcess(e.getUuid(), e.getUsername(), null);
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ public class HytaleConnectionListener extends AbstractConnectionListener {
|
||||
}
|
||||
|
||||
Component reason = TranslationManager.render(Message.LOADING_STATE_ERROR.build(), player.getLanguage());
|
||||
player.getPacketHandler().disconnect(PlainTextComponentSerializer.plainText().serialize(reason));
|
||||
player.getPacketHandler().disconnect(HytaleSenderFactory.toHytaleMessage(reason));
|
||||
}
|
||||
|
||||
private void onPlayerQuit(PlayerDisconnectEvent e) {
|
||||
|
||||
Reference in new issue
Block a user