|
@@ -50,7 +50,7 @@ if(command == "copyisland" || command == "ci") {
|
|
|
}
|
|
|
size = list.getSize(args);
|
|
|
if(size == 0) {
|
|
|
- player.speak(player, "§3CopyIsland", "/copyisland");
|
|
|
+ msg.prefix(player, "§3CopyIsland", "/copyisland");
|
|
|
msg(player, "§3 - copy §rSpeichert die Player-Location relativ zur Auswahl");
|
|
|
msg(player, "§3 - paste §rKopiert relativ zur Location, an der 'copy' ausgeführt wurde");
|
|
|
msg(player, "§3 - pos1 §rSetzt Pos1 auf deine aktuelle Position");
|
|
@@ -59,7 +59,7 @@ if(command == "copyisland" || command == "ci") {
|
|
|
}
|
|
|
arg0 = list.getIndex(args, 0);
|
|
|
if(!isTheCloningPlayer(player_id)) {
|
|
|
- player.speak(player, "§3CopyIsland", "Copyisland wird von ", player.getNameFromId(cloningplayer), " verwendet");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("Copyisland wird von ", player.getNameFromId(cloningplayer), " verwendet."));
|
|
|
goto("wait");
|
|
|
}
|
|
|
if(arg0 == "pos1") {
|
|
@@ -74,7 +74,7 @@ if(command == "copyisland" || command == "ci") {
|
|
|
}
|
|
|
if(arg0 == "air") {
|
|
|
if(world1 == null || world2 == null) {
|
|
|
- player.speak(player, "§3CopyIsland", "Auswahl inkorrekt");
|
|
|
+ msg.prefix(player, "§3CopyIsland", "Auswahl inkorrekt.");
|
|
|
goto("wait");
|
|
|
}
|
|
|
if(x1 > x2) {
|
|
@@ -100,8 +100,8 @@ if(command == "copyisland" || command == "ci") {
|
|
|
//Zeitberechnung
|
|
|
volume = x_length * y_length * z_length; //Volumen des ausgewählten Bereichs (oder Anzahl der Blöcke)
|
|
|
calc_time = math.round((volume / 30000) * 1.633);
|
|
|
- player.speak(player, "§3CopyIsland", "§r", text.number(volume), " §eBlöcke werden gesetzt");
|
|
|
- player.speak(player, "§3CopyIsland", "§3Geschätzte Dauer: §r", text.number(calc_time), "§e Sekunden");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§r", text.number(volume), " §eBlöcke werden gesetzt."));
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§3Geschätzte Dauer: §r", text.number(calc_time), "§e Sekunden."));
|
|
|
start_time = time.getMillis();
|
|
|
|
|
|
x1 = math.roundDown(x1 / 16) * 16;
|
|
@@ -131,9 +131,9 @@ if(command == "copyisland" || command == "ci") {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- player.speak(player, "§3CopyIsland", "§3Done: §r", text.number(counter), "§e blocks affected");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§3Done: §r", text.number(counter), "§e blocks affected."));
|
|
|
end_time = time.getMillis();
|
|
|
- player.speak(player, "§3CopyIsland", "§3Benötigte Zeit: §r", text.number(math.round(((end_time - start_time) / 1000))), "§e Sekunden");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§3Benötigte Zeit: §r", text.number(math.round(((end_time - start_time) / 1000))), "§e Sekunden."));
|
|
|
cloningplayer = null;
|
|
|
x1 = null;
|
|
|
y1 = null;
|
|
@@ -147,20 +147,20 @@ if(command == "copyisland" || command == "ci") {
|
|
|
}
|
|
|
if(arg0 == "copy") {
|
|
|
if(world1 == null || world2 == null) {
|
|
|
- player.speak(player, "§3CopyIsland", "Auswahl inkorrekt");
|
|
|
+ msg.prefix(player, "§3CopyIsland", "Auswahl inkorrekt.");
|
|
|
goto("wait");
|
|
|
}
|
|
|
from_loc = entity.getLocation(player);
|
|
|
- player.speak(player, "§3CopyIsland", "§rBereit zum Kopieren");
|
|
|
+ msg.prefix(player, "§3CopyIsland", "§rBereit zum Kopieren.");
|
|
|
goto("wait");
|
|
|
}
|
|
|
if(arg0 == "paste") {
|
|
|
if(world1 == null || world2 == null) {
|
|
|
- player.speak(player, "§3CopyIsland", "Auswahl inkorrekt");
|
|
|
+ msg.prefix(player, "§3CopyIsland", "Auswahl inkorrekt.");
|
|
|
goto("wait");
|
|
|
}
|
|
|
if(from_loc == null) {
|
|
|
- player.speak(player, "§3CopyIsland", "Zuerst die Location relativ zur Auswahl setzen /ci copy");
|
|
|
+ msg.prefix(player, "§3CopyIsland", "Zuerst die Location relativ zur Auswahl setzen /ci copy.");
|
|
|
goto("wait");
|
|
|
}
|
|
|
|
|
@@ -188,8 +188,8 @@ if(command == "copyisland" || command == "ci") {
|
|
|
//Zeitberechnung
|
|
|
volume = x_length * y_length * z_length; //Volumen des ausgewählten Bereichs (oder Anzahl der Blöcke)
|
|
|
calc_time = math.round((volume / 30000) * 1.633);
|
|
|
- player.speak(player, "§3CopyIsland", "§r", text.number(volume), " §eBlöcke werden kopiert");
|
|
|
- player.speak(player, "§3CopyIsland", "§3Geschätzte Dauer: §r", text.number(calc_time), "§e Sekunden");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§r", text.number(volume), " §eBlöcke werden kopiert."));
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§3Geschätzte Dauer: §r", text.number(calc_time), "§e Sekunden."));
|
|
|
start_time = time.getMillis();
|
|
|
|
|
|
//Distanzen zwischen Spieler-Loc von /copy und 1.Block der kopiert wird
|
|
@@ -217,9 +217,9 @@ if(command == "copyisland" || command == "ci") {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- player.speak(player, "§3CopyIsland", "§3Done: §r", text.number(counter), "§e blocks affected");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§3Done: §r", text.number(counter), "§e blocks affected."));
|
|
|
end_time = time.getMillis();
|
|
|
- player.speak(player, "§3CopyIsland", "§3Benötigte Zeit: §r", text.number(math.round(((end_time - start_time) / 1000))), "§e Sekunden");
|
|
|
+ msg.prefix(player, "§3CopyIsland", concat("§3Benötigte Zeit: §r", text.number(math.round(((end_time - start_time) / 1000))), "§e Sekunden."));
|
|
|
cloningplayer = null;
|
|
|
x1 = null;
|
|
|
y1 = null;
|
|
@@ -240,7 +240,7 @@ function setPos1(player_id, location) {
|
|
|
$y1 = loc.getCoord(location, "by");
|
|
|
$z1 = loc.getCoord(location, "bz");
|
|
|
$world1 = loc.getWorld(location);
|
|
|
- player.speak($player, "§3CopyIsland", concat("§3Pos1: ", text.number($x1), ", ", text.number($y1), ", ", text.number($z1)));
|
|
|
+ msg.prefix($player, "§3CopyIsland", concat("§3Pos1: ", text.number($x1), ", ", text.number($y1), ", ", text.number($z1)));
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -249,7 +249,7 @@ function setPos2(player_id, location) {
|
|
|
$y2 = loc.getCoord(location, "by");
|
|
|
$z2 = loc.getCoord(location, "bz");
|
|
|
$world2 = loc.getWorld(location);
|
|
|
- player.speak($player, "§3CopyIsland", concat("§3Pos2: ", text.number($x2), ", ", text.number($y2), ", ", text.number($z2)));
|
|
|
+ msg.prefix($player, "§3CopyIsland", concat("§3Pos2: ", text.number($x2), ", ", text.number($y2), ", ", text.number($z2)));
|
|
|
return;
|
|
|
}
|
|
|
|