mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
refactor: rework networking system
This commit is contained in:
16 files changed
+388
-535
No files matched your search
@@ -184,10 +184,9 @@ public class HomesManager {
|
||||
private void propagateCacheUpdate(@NotNull UUID homeId) {
|
||||
plugin.getBroker().ifPresent(b -> plugin.getOnlineUsers().stream().findAny()
|
||||
.ifPresent(user -> Message.builder()
|
||||
.type(Message.Type.UPDATE_HOME)
|
||||
.scope(Message.Scope.SERVER)
|
||||
.target(Message.TARGET_ALL)
|
||||
.payload(Payload.withString(homeId.toString()))
|
||||
.type(Message.MessageType.UPDATE_HOME)
|
||||
.target(Message.TARGET_ALL, Message.TargetType.SERVER)
|
||||
.payload(Payload.string(homeId.toString()))
|
||||
.build().send(b, user)));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user