This repository was archived by the owner on May 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Development | Network
Dkrieger edited this page Jan 6, 2019
·
4 revisions
You can communicate from any server to your network.
- Get players on a server
- Broadcast a message
- Send a joinme
- Send a team message
- Filter and broadcast reload
- Create a custom network
Returns all players on a server.
List<String>#BanSystem.getInstance().getNetwork().getPlayersOnServer("Server-1")
Broadcast a message to all online players.
BanSystem.getInstance().getNetwork().broadcast("My message") //Send a simple text message
BanSystem.getInstance().getNetwork().broadcast(new TextComponent("My message")) //Send a text component
BanSystem.getInstance().getNetwork().broadcast(broadcast) //Send a finished Broadcast
Send a joinme to all online players.
BanSystem.getInstance().getNetwork().sendJoinMe(Joinme joinme)
Send a message to all online team members.
BanSystem.getInstance().getNetwork().sendTeamMessage("My message"); //Send a simple text message
BanSystem.getInstance().getNetwork().sendTeamMessage(new TextComponent("My message"));//Send a text component message
Reload fitlers and broadcasts on your network.
BanSystem.getInstance().getNetwork().reloadFilters(); //Reload all filters
BanSystem.getInstance().getNetwork().reloadBroadcasts(); //Reload all broadcasts
If you want implement a network to for your cloud or platform use the DKNetwork interface.