Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Implemented Player.sendMessage()
Dieser Commit ist enthalten in:
Ursprung
f8e01e128b
Commit
bd53a823d2
@ -2,6 +2,7 @@
|
|||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import net.minecraft.server.EntityPlayerMP;
|
import net.minecraft.server.EntityPlayerMP;
|
||||||
|
import net.minecraft.server.Packet3Chat;
|
||||||
import org.bukkit.Player;
|
import org.bukkit.Player;
|
||||||
|
|
||||||
public class CraftPlayer extends CraftHumanEntity implements Player {
|
public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
@ -25,4 +26,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return "CraftPlayer{" + "name=" + getName() + '}';
|
return "CraftPlayer{" + "name=" + getName() + '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendMessage(String message) {
|
||||||
|
entity.a.b(new Packet3Chat(message));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren