Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.

Development | Network

Dkrieger edited this page Jan 6, 2019 · 4 revisions

You can communicate from any server to your network.

Index


Get players on a server (name)

Returns all players on a server.

List<String>#BanSystem.getInstance().getNetwork().getPlayersOnServer("Server-1")

Broadcast a message

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

Send a joinme to all online players.

BanSystem.getInstance().getNetwork().sendJoinMe(Joinme joinme)

Send a team message

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

Filter and broadcast reload

Reload fitlers and broadcasts on your network.

BanSystem.getInstance().getNetwork().reloadFilters(); //Reload all filters

BanSystem.getInstance().getNetwork().reloadBroadcasts(); //Reload all broadcasts

Create a custom network

If you want implement a network to for your cloud or platform use the DKNetwork interface.

Examples:

Clone this wiki locally