mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
More json fixes
This commit is contained in:
parent
cc562033e7
commit
630284e7ae
@ -90,7 +90,7 @@ public class Grant extends Command {
|
|||||||
PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS)) {
|
PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS)) {
|
||||||
if (args[0].equalsIgnoreCase("check")) {
|
if (args[0].equalsIgnoreCase("check")) {
|
||||||
player.sendMessage(TranslatableCaption.of("grants.granted_plots"),
|
player.sendMessage(TranslatableCaption.of("grants.granted_plots"),
|
||||||
Template.of("grants", String.valueOf(access.get().orElse(0))));
|
Template.of("amount", String.valueOf(access.get().orElse(0))));
|
||||||
} else {
|
} else {
|
||||||
access.set(access.get().orElse(0) + 1);
|
access.set(access.get().orElse(0) + 1);
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ public class Rate extends SubCommand {
|
|||||||
plot.addRating(uuid, event.getRating());
|
plot.addRating(uuid, event.getRating());
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("ratings.rating_applied"),
|
TranslatableCaption.of("ratings.rating_applied"),
|
||||||
Template.of("value", plot.getId().toString())
|
Template.of("plot", plot.getId().toString())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user