-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
keksexception
committed
May 23, 2020
1 parent
8a3337c
commit b5372c5
Showing
5 changed files
with
28 additions
and
26 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package de.raffi.lobbynpcs.utils; | ||
|
||
import org.bukkit.entity.Player; | ||
|
||
import com.google.common.io.ByteArrayDataOutput; | ||
import com.google.common.io.ByteStreams; | ||
|
||
import de.raffi.lobbynpcs.main.LobbyNPCs; | ||
|
||
public class Bungee { | ||
|
||
|
||
|
||
public static final void sendToServer(String server, Player player) { | ||
ByteArrayDataOutput out = ByteStreams.newDataOutput(); | ||
out.writeUTF("Connect"); | ||
out.writeUTF(server); | ||
player.sendPluginMessage(LobbyNPCs.getInstance(), "BungeeCord", out.toByteArray()); | ||
} | ||
|
||
|
||
|
||
} |
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