use of gg.projecteden.nexus.framework.commands.models.annotations.Description in project Nexus by ProjectEdenGG.
the class Pugmas20Command method district.
@Path("district")
@Description("View which district you are currently in")
void district() {
District district = District.of(location());
send(PREFIX + "You are " + (district == District.UNKNOWN ? "not in a district" : "in the &e" + district.getName() + " District"));
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Description in project Nexus by ProjectEdenGG.
the class TrustCommand method home.
@Description("Allow specified player(s) to a specific home")
@Path("home <home> <players>")
void home(Home home, @Arg(type = OfflinePlayer.class) List<OfflinePlayer> players) {
players.forEach(home::allow);
new HomeService().save(home.getOwner());
send(PREFIX + "Trusted &e" + nicknames(players, "&3, &e") + " &3to home &e" + home.getName());
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Description in project Nexus by ProjectEdenGG.
the class Pugmas21Command method randomizePresents.
@Path("randomizePresents")
@Permission(Group.ADMIN)
@Description("Randomizes the presents in your selection")
void randomizePresents() {
List<Instrument> instruments = List.of(Instrument.DIDGERIDOO, Instrument.PLING);
WorldEditUtils WEUtils = new WorldEditUtils(player());
Region selection = WEUtils.getPlayerSelection(player());
for (Block block : WEUtils.getBlocks(selection)) {
if (block.getType() != Material.NOTE_BLOCK)
continue;
NoteBlock noteBlock = (NoteBlock) block.getBlockData();
noteBlock.setInstrument(RandomUtils.randomElement(instruments));
noteBlock.setNote(new Note(RandomUtils.randomInt(0, 24)));
block.setBlockData(noteBlock);
}
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Description 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.framework.commands.models.annotations.Description in project Nexus by ProjectEdenGG.
the class Pugmas21Command method advent.
@Path("advent")
@Description("Open the advent calender")
void advent(@Arg(value = "0", permission = Group.ADMIN) @Switch int day, @Arg(value = "30", permission = Group.ADMIN) @Switch int frameTicks) {
verifyDate();
LocalDate date = Pugmas21.TODAY;
if (date.isBefore(Pugmas21.EPOCH) || day > 0)
date = Pugmas21.EPOCH.plusDays(day - 1);
new AdventMenu(user, date, frameTicks).open(player());
}
Aggregations