Convert components, add Towny-Factions #14

Merged
NorbiPeti merged 7 commits from dev into master 2019-10-30 19:59:06 +00:00
3 changed files with 3 additions and 2 deletions
Showing only changes of commit aa8d8a3028 - Show all commits

View file

@ -15,4 +15,4 @@ commands:
description: A set of commands designed for R and D
softdepend: [Factions]
depend: [ButtonCore]
depend: [ChromaCore]

View file

@ -56,7 +56,7 @@ public class TownyFactionsComponent extends Component<ButtonPresents> implements
int distance = max * amount;
if (distance().get() >= distance) {
event.setCancelled(true);
event.getSender().sendMessage("§cYou are too close to a town!");
event.getSender().sendMessage("§cYou are too close to a town! " + distance + " chunks away, " + distance().get() + " is allowed.");
}
}
}

View file

@ -15,3 +15,4 @@ commands:
description: A set of commands designed for R and D
softdepend: [Factions]
depend: [ChromaCore]