|
|
@ -152,10 +152,12 @@ public class LinkedBeaconTeleporterManager {
|
|
|
|
String serialiseBeaconItem(String name, List<String> lore){
|
|
|
|
String serialiseBeaconItem(String name, List<String> lore){
|
|
|
|
// get name and remove control-chars
|
|
|
|
// get name and remove control-chars
|
|
|
|
String str = name.replace("\\", "\\\\");
|
|
|
|
String str = name.replace("\\", "\\\\");
|
|
|
|
|
|
|
|
if(lore != null){
|
|
|
|
for (String loreLine : lore) {
|
|
|
|
for (String loreLine : lore) {
|
|
|
|
// get lore-lines and remove control-chars
|
|
|
|
// get lore-lines and remove control-chars
|
|
|
|
str += "\n"+ loreLine.replace("\\", "\\\\");
|
|
|
|
str += "\n"+ loreLine.replace("\\", "\\\\");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return str;
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|