use of gg.projecteden.nexus.framework.commands.models.annotations.Path in project Nexus by ProjectEdenGG.
the class Easter20Command method set.
@Permission(Group.STAFF)
@Path("set <player>")
void set(OfflinePlayer player) {
Sign sign = getTargetSignRequired();
sign.setLine(0, header);
sign.setLine(1, player.getName());
sign.update();
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Path in project Nexus by ProjectEdenGG.
the class Halloween20Command method reset.
@Path("reset [player]")
@Permission(Group.ADMIN)
void reset(@Arg("self") OfflinePlayer player) {
Halloween20Service service = new Halloween20Service();
Halloween20User user = service.get(player);
user.setLostPumpkinsStage(QuestStage.LostPumpkins.NOT_STARTED);
user.setFoundPumpkins(new ArrayList<>());
user.setCombinationStage(QuestStage.Combination.NOT_STARTED);
user.setFoundComboLockNumbers(new ArrayList<>());
service.save(user);
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Path in project Nexus by ProjectEdenGG.
the class ParticlesCommand method dot.
@Path("dot")
@Permission(Group.ADMIN)
void dot() {
Location loc = getCenteredLocation(location()).add(0, 1, 0);
DotEffect.builder().player(player()).location(loc).ticks(10 * 20).rainbow(true).start();
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Path in project Nexus by ProjectEdenGG.
the class WingsCommand method stop.
@Path("stop")
void stop() {
ParticleOwner owner = service.get(player());
owner.cancel(ParticleType.WINGS);
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Path 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());
}
Aggregations