Start refactor work

This commit is contained in:
William278 committed 2023-03-01 16:23:01 +00:00
1 parent 6a8851a446
commit 3e1ec09487
51 files changed
+2397 -2474

No files matched your search

@@ -57,7 +57,7 @@ public abstract class Messenger implements AutoCloseable {
this.processingMessages = new HashMap<>();
this.onlinePlayerNamesRequests = new ArrayList<>();
this.onlineServersRequests = new ArrayList<>();
this.clusterId = implementor.getSettings().clusterId;
this.clusterId = implementor.getSettings().getClusterId();
this.plugin = implementor;
}
@@ -157,14 +157,14 @@ public class Request {
public CompletableFuture<Optional<Request>> send(@NotNull OnlineUser sender, @NotNull HuskHomes plugin) {
this.sender = sender.username;
this.clusterId = plugin.getSettings().clusterId;
this.clusterId = plugin.getSettings().getClusterId();
return plugin.getMessenger().sendMessage(sender, this);
}
public void reply(@NotNull OnlineUser sender, @NotNull Payload payload, @NotNull HuskHomes plugin) {
this.targetPlayer = this.sender;
this.sender = sender.username;
this.clusterId = plugin.getSettings().clusterId;
this.clusterId = plugin.getSettings().getClusterId();
this.payload = payload;
this.relayType = RelayType.REPLY;
plugin.getMessenger().sendReply(sender, this);