use of gg.projecteden.nexus.framework.commands.models.annotations.Permission in project Nexus by ProjectEdenGG.
the class ScoreboardCommand method list.
@Permission(Group.STAFF)
@Path("list")
void list() {
String collect = OnlinePlayers.getAll().stream().map(player -> new ScoreboardService().get(player)).filter(ScoreboardUser::isActive).map(Nickname::of).collect(Collectors.joining("&3, &e"));
send(PREFIX + "Active scoreboards: ");
send("&e" + collect);
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Permission in project Nexus by ProjectEdenGG.
the class SafeCrackerCommand method reset.
@Path("admin reset [player]")
@Permission(Group.STAFF)
void reset(@Arg("self") OfflinePlayer player) {
SafeCrackerPlayer safeCrackerPlayer = playerService.get(player);
safeCrackerPlayer.setGames(new HashMap<>());
playerService.save(safeCrackerPlayer);
send(PREFIX + "Successfully reset &e" + player.getName());
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Permission in project Nexus by ProjectEdenGG.
the class StoreCommand method gallery_debug_displays.
@Path("gallery debug displays")
@Permission(Group.ADMIN)
void gallery_debug_displays() {
for (DisplaySet display : StoreGalleryNPCs.getDisplays()) {
send(display.getId() + ":");
send(" 1: " + display.getDisplay1().getId());
send(" 2: " + display.getDisplay2().getId());
send(" 3: " + display.getDisplay3().getId());
}
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Permission in project Nexus by ProjectEdenGG.
the class Pugmas21Command method balloon_move.
@Path("balloon move [--seconds]")
@Permission(Group.ADMIN)
void balloon_move(@Arg("20") @Switch int seconds) {
final MultiModelStructure structure = getBalloonStructure().spawn();
player().setGravity(false);
int taskId = Tasks.repeat(0, 1, () -> {
final Vector west = BlockFace.WEST.getDirection().multiply(.1);
player().setVelocity(west);
for (Model model : structure.getModels()) {
EntityUtils.forcePacket(model.getArmorStand());
model.getArmorStand().teleport(model.getArmorStand().getLocation().add(west));
}
});
Tasks.wait(TickTime.SECOND.x(seconds), () -> {
Tasks.cancel(taskId);
player().setGravity(true);
});
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Permission in project Nexus by ProjectEdenGG.
the class HubCommand method parkour_create.
@Path("parkour create <course>")
@Permission(Group.ADMIN)
void parkour_create(String course) {
courseService.save(new HubParkourCourse(UUID.nameUUIDFromBytes(course.getBytes()), course));
send(PREFIX + "Parkour course created");
}
Aggregations