mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Use Annotaml instead of BoostedYaml for config loading
This commit is contained in:
1 parent
979d57e7b2
commit
c1df905b41
14 files changed
+283
-396
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package net.william278.huskhomes.messenger;
|
||||
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.config.Settings;
|
||||
import net.william278.huskhomes.player.OnlineUser;
|
||||
import net.william278.huskhomes.position.Server;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -50,7 +49,7 @@ public abstract class NetworkMessenger {
|
||||
*/
|
||||
public void initialize(@NotNull HuskHomes implementor) {
|
||||
this.processingMessages = new HashMap<>();
|
||||
this.clusterId = implementor.getSettings().getStringValue(Settings.ConfigOption.CLUSTER_ID);
|
||||
this.clusterId = implementor.getSettings().clusterId;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -129,9 +128,7 @@ public abstract class NetworkMessenger {
|
||||
case TP_REQUEST -> {
|
||||
|
||||
}
|
||||
case POSITION_REQUEST -> {
|
||||
message.payload = receiver.getPosition().join().toJson();
|
||||
}
|
||||
case POSITION_REQUEST -> message.payload = receiver.getPosition().join().toJson();
|
||||
}
|
||||
|
||||
// Prepare reply message
|
||||
|
||||
Reference in new issue
Block a user