Skip to content

Commit 9268e46

Browse files
committed
Update Hytale version and fix nLogin error on unregister
Fixes #63
1 parent f50e425 commit 9268e46

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ This plugin currently supports the following platforms:
2323

2424
### Download
2525

26-
The latest version of AzLink for _Minecraft: Java Edition_ can be downloaded on [Modrinth](https://modrinth.com/project/azuriom).
27-
28-
For Nukkit and Hytale, you can download the plugin from the [GitHub Releases](https://github.com/Azuriom/AzLink/releases).
26+
The latest version of AzLink can be downloaded from [AzLink download page](https://azuriom.com/en/azlink).
2927

3028
## Installation
3129

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
allprojects {
22
group = 'com.azuriom'
3-
version = '1.3.12'
3+
version = '1.3.13'
44
}
55

66
subprojects {

bukkit/src/main/java/com/azuriom/azlink/bukkit/integrations/NLoginIntegration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ public void onRegister(RegisterEvent event) {
3939

4040
@EventHandler
4141
public void onPasswordUpdate(PasswordUpdateEvent event) {
42-
handleUpdatePassword(event.getPlayerId(), event.getPlayerName(), event.getNewPassword());
42+
// Password is null on unregister, see https://github.com/Azuriom/AzLink/issues/63
43+
if (event.getNewPassword() != null) {
44+
handleUpdatePassword(event.getPlayerId(), event.getPlayerName(), event.getNewPassword());
45+
}
4346
}
4447

4548
public static void register(AzLinkBukkitPlugin plugin) {

common/src/main/java/com/azuriom/azlink/common/tasks/FetcherTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ private void dispatchCommands(Map<String, List<String>> commands) {
101101

102102
for (String command : entry.getValue()) {
103103
command = command.replace("{player}", playerName)
104+
.replace("{name}", playerName)
104105
.replace("{uuid}", player != null ? player.getUuid().toString() : "?");
105106

106107
this.plugin.getLogger().info("Dispatching command for player " + playerName + ": " + command);

hytale/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ repositories {
22
maven { url = 'https://maven.hytale.com/release/' }
33
}
44

5-
def hytaleVersion = '2026.03.26-89796e57b'
5+
def hytaleVersion = '0.5.3'
66

77
dependencies {
88
implementation project(':azlink-common')

hytale/src/main/java/com/azuriom/azlink/hytale/HytaleComponentAdapter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ private static Message applyDecoration(Message message, TextDecoration decoratio
3838
return message.bold(true);
3939
case ITALIC:
4040
return message.italic(true);
41-
case UNDERLINE:
42-
return message; //.underlined(true); TODO missing method in Hytale
4341
default:
4442
return message;
4543
}

hytale/src/main/java/com/azuriom/azlink/hytale/command/HytaleCommandSender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public HytaleCommandSender(CommandSender sender) {
1616

1717
@Override
1818
public String getName() {
19-
return this.sender.getDisplayName();
19+
return this.sender.getUsername();
2020
}
2121

2222
@Override

0 commit comments

Comments
 (0)