Add %description% macro (thanks to talmor)
This commit is contained in:
parent
36d7f22b9b
commit
02026104b7
@ -194,6 +194,7 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
|||||||
private String formatInfoWindow(Faction fact) {
|
private String formatInfoWindow(Faction fact) {
|
||||||
String v = "<div class=\"regioninfo\">"+infowindow+"</div>";
|
String v = "<div class=\"regioninfo\">"+infowindow+"</div>";
|
||||||
v = v.replace("%regionname%", ChatColor.stripColor(fact.getTag()));
|
v = v.replace("%regionname%", ChatColor.stripColor(fact.getTag()));
|
||||||
|
v = v.replace("%description%", ChatColor.stripColor(fact.getDescription()));
|
||||||
FPlayer adm;
|
FPlayer adm;
|
||||||
try {
|
try {
|
||||||
adm = fact.getFPlayerAdmin();
|
adm = fact.getFPlayerAdmin();
|
||||||
|
Loading…
Reference in New Issue
Block a user