Cut down jar size, adjust shadings, fix message formatting, adjust home pattern matching

This commit is contained in:
William committed 2022-08-10 22:42:37 +01:00
1 parent ff2465ac85
commit 979d57e7b2
22 files changed
+160 -107

No files matched your search

@@ -46,7 +46,8 @@ public class Message {
* ID of the cluster this message is for
*/
@SerializedName("cluster_id")
public int clusterId;
@NotNull
public String clusterId;
/**
* Data to send in the message
@@ -55,7 +56,7 @@ public class Message {
public String payload;
public Message(@NotNull MessageType type, @NotNull String sender, @NotNull String targetPlayer,
@NotNull MessageSerializable payload, @NotNull MessageKind messageKind, int clusterId) {
@NotNull MessageSerializable payload, @NotNull MessageKind messageKind, @NotNull String clusterId) {
this.type = type;
this.sender = sender;
this.targetPlayer = targetPlayer;
@@ -41,7 +41,7 @@ public abstract class NetworkMessenger {
/**
* ID of the HuskHomes network cluster this server is on
*/
protected int clusterId;
protected String clusterId;
/**
* Initialize the network messenger
@@ -50,7 +50,7 @@ public abstract class NetworkMessenger {
*/
public void initialize(@NotNull HuskHomes implementor) {
this.processingMessages = new HashMap<>();
this.clusterId = implementor.getSettings().getIntegerValue(Settings.ConfigOption.CLUSTER_ID);
this.clusterId = implementor.getSettings().getStringValue(Settings.ConfigOption.CLUSTER_ID);
}
/**