You are not logged in.

  • Login
Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

Dear visitor, welcome to Nitrado.net Prepaid Gameserver Community-Support - Archiv. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

mastercake10

User / Kunde

  • "mastercake10" is male
  • "mastercake10" started this thread

Posts: 196

  • Send private message

1

Monday, November 17th 2014, 8:01pm

[BungeeCord] BungeeCord Message

Hallo, ich versuche gerade eine nachricht von einem Bukkit Plugin aus über den MessagingChannel eine Nachricht an einem Spieler zu senden...

Source code

1
2
3
4
5
6
7
8
public static void sendMessagetoPlayer(String Player, String Message){
		ByteArrayDataOutput out = ByteStreams.newDataOutput();
		out.writeUTF("Message");
		out.writeUTF(Player);
		out.writeUTF("Hallo");
		
		Bukkit.getServer().sendPluginMessage(plugin, "BungeeCord", out.toByteArray());
	}

... Allerdings wird die nachricht dann zwei mal ausgeben, also
Hallo
Hallo
... Könnt ihr mir helfen? Bin am verzweifeln :D

Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net