2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-08 16:10:26 +00:00

implement the ProxyManager

untested
This commit is contained in:
2026-03-28 19:31:31 +04:00
parent 5e4b151d44
commit b855764e19
11 changed files with 311 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
description = "Api functions for valiobungee"
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
testImplementation(libs.testing.juipter)
}
tasks.test {
useJUnitPlatform()
}

View File

@@ -0,0 +1,10 @@
/*
* Copyright (c) 2026-present ValioBungee contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License Version 2.0
* which accompanies this distribution, and is available at
* https://www.apache.org/licenses/LICENSE-2.0.txt
*/
package net.limework.valiobungee.api;
public interface NetworkPlayer {}

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 2026-present ValioBungee contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License Version 2.0
* which accompanies this distribution, and is available at
* https://www.apache.org/licenses/LICENSE-2.0.txt
*/
package net.limework.valiobungee.api;
/**
* Proxy is an object for online proxy in a network
*
* @author Ham1255
* @since 1.0.0
*/
public interface NetworkProxy {
/**
* @return return the proxy id of this proxy
*/
String proxyId();
/**
* @return online players number in this proxy
*/
int onlinePlayers();
/**
* @return returns true if this object is proxy on it
*/
boolean isMe();
}