mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 06:23:14 +00:00
Fixes #419 , among other things
This commit is contained in:
parent
1564b58a3d
commit
b2fbd74d4b
15 changed files with 226 additions and 141 deletions
|
@ -225,6 +225,7 @@ public class Set extends SubCommand {
|
|||
if (component.equalsIgnoreCase(args[0])) {
|
||||
if (!Permissions.hasPermission(plr, "plots.set." + component)) {
|
||||
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.set." + component);
|
||||
return false;
|
||||
}
|
||||
PlotBlock[] blocks;
|
||||
try {
|
||||
|
@ -313,7 +314,7 @@ public class Set extends SubCommand {
|
|||
}
|
||||
|
||||
private String getString(final String s) {
|
||||
return MainUtil.colorise('&', C.BLOCK_LIST_ITEM.s().replaceAll("%mat%", s));
|
||||
return StringMan.replaceAll(C.BLOCK_LIST_ITEM.s(), "%mat%", s);
|
||||
}
|
||||
|
||||
private String getArgumentList(final List<String> newValues) {
|
||||
|
@ -326,7 +327,7 @@ public class Set extends SubCommand {
|
|||
|
||||
private String getBiomeList(final String[] biomes) {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
builder.append(MainUtil.colorise('&', C.NEED_BIOME.s()));
|
||||
builder.append(C.NEED_BIOME.s());
|
||||
for (final String b : biomes) {
|
||||
builder.append(getString(b));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue