Added support for line breaks to BukkitPlayer.print*

This commit is contained in:
TomyLobo 2011-12-05 10:33:13 +01:00
parent 11dadd7417
commit 3ccb152350

View File

@ -72,22 +72,30 @@ public class BukkitPlayer extends LocalPlayer {
@Override @Override
public void printRaw(String msg) { public void printRaw(String msg) {
player.sendMessage(msg); for (String part : msg.split("\n")) {
player.sendMessage(part);
}
} }
@Override @Override
public void print(String msg) { public void print(String msg) {
player.sendMessage("\u00A7d" + msg); for (String part : msg.split("\n")) {
player.sendMessage("\u00A7d" + part);
}
} }
@Override @Override
public void printDebug(String msg) { public void printDebug(String msg) {
player.sendMessage("\u00A77" + msg); for (String part : msg.split("\n")) {
player.sendMessage("\u00A77" + part);
}
} }
@Override @Override
public void printError(String msg) { public void printError(String msg) {
player.sendMessage("\u00A7c" + msg); for (String part : msg.split("\n")) {
player.sendMessage("\u00A7c" + part);
}
} }
@Override @Override