Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow targeting multiple RemotePlayers
- Loading branch information
Showing
30 changed files
with
1,089 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
SubServers.Bungee/common/src/net/ME1312/SubServers/Bungee/Library/Compatibility/RPSI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package net.ME1312.SubServers.Bungee.Library.Compatibility; | ||
|
||
import net.ME1312.Galaxi.Library.Callback.Callback; | ||
|
||
import net.md_5.bungee.api.chat.BaseComponent; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* RemotePlayer Static Implementation Layout Class | ||
*/ | ||
public abstract class RPSI { | ||
protected static RPSI instance; | ||
protected RPSI() { | ||
if (instance == null) instance = this; | ||
} | ||
|
||
/** | ||
* Sends messages to this player | ||
* | ||
* @param players Players to send to | ||
* @param messages Messages to send | ||
* @param response Success Status | ||
*/ | ||
protected abstract void sendMessage(UUID[] players, String[] messages, Callback<Integer> response); | ||
|
||
/** | ||
* Sends messages to this player | ||
* | ||
* @param players Players to send to | ||
* @param messages Messages to send | ||
* @param response Success Status | ||
*/ | ||
protected abstract void sendMessage(UUID[] players, BaseComponent[] messages, Callback<Integer> response); | ||
|
||
/** | ||
* Transfers this player to another server | ||
* | ||
* @param players Players to send to | ||
* @param server Target server | ||
* @param response Success Status | ||
*/ | ||
protected abstract void transfer(UUID[] players, String server, Callback<Integer> response); | ||
|
||
/** | ||
* Disconnects this player from the network | ||
* | ||
* @param players Players to send to | ||
* @param reason Disconnect Reason | ||
* @param response Success status | ||
*/ | ||
protected abstract void disconnect(UUID[] players, String reason, Callback<Integer> response); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.