use of gg.projecteden.nexus.features.events.y2021.pugmas21.models.District in project Nexus by ProjectEdenGG.
the class Pugmas21Command method district.
@Path("district")
@Description("View which district you are currently in")
void district() {
District district = District.of(location());
if (district == null)
error("You must be in Pugmas to run this command");
send(PREFIX + "You are " + (district == District.UNKNOWN ? "not in a district" : "in the &e" + district.getFullName()));
}
use of gg.projecteden.nexus.features.events.y2021.pugmas21.models.District in project Nexus by ProjectEdenGG.
the class Advent method onDistrictEnter.
@EventHandler
public void onDistrictEnter(PlayerEnteredRegionEvent event) {
Player player = event.getPlayer();
if (!Pugmas21.isAtPugmas(player))
return;
District district = District.of(player.getLocation());
if (district != null && district != District.UNKNOWN)
ActionBarUtils.sendActionBar(player, "&a&lEntering " + district.getFullName());
}
use of gg.projecteden.nexus.features.events.y2021.pugmas21.models.District in project Nexus by ProjectEdenGG.
the class Advent method onDistrictExit.
@EventHandler
public void onDistrictExit(PlayerLeavingRegionEvent event) {
Player player = event.getPlayer();
if (!Pugmas21.isAtPugmas(player))
return;
District district = District.of(player.getLocation());
if (district != null && district != District.UNKNOWN)
ActionBarUtils.sendActionBar(player, "&c&lExiting " + district.getFullName());
}
Aggregations