32 lines
816 B
Java
32 lines
816 B
Java
/*
|
|
* Copyright (c) 2013-present RedisBungee contributors
|
|
*
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
* which accompanies this distribution, and is available at
|
|
*
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
*/
|
|
|
|
package com.imaginarycode.minecraft.redisbungee.api.payloads.proxy;
|
|
|
|
import com.imaginarycode.minecraft.redisbungee.api.payloads.AbstractPayload;
|
|
|
|
public class HeartbeatPayload extends AbstractPayload {
|
|
|
|
public record HeartbeatData(long heartbeat, int players) {
|
|
|
|
}
|
|
|
|
private final HeartbeatData data;
|
|
|
|
public HeartbeatPayload(String proxyId, HeartbeatData data) {
|
|
super(proxyId);
|
|
this.data = data;
|
|
}
|
|
|
|
public HeartbeatData data() {
|
|
return data;
|
|
}
|
|
}
|