use of gg.projecteden.nexus.framework.commands.models.annotations.Cooldown in project Nexus by ProjectEdenGG.
the class ModReviewCommand method request.
@Cooldown(value = TickTime.SECOND, x = 30)
@Path("request <name> [notes...]")
@Description("Request a mod to be reviewed by the staff team")
void request(String name, String notes) {
ModReviewRequest request = new ModReviewRequest(uuid(), name, notes);
modReview.request(request);
save();
send(PREFIX + "Requested mod &e" + name + " &3to be reviewed");
String message = "&e" + name() + " &3has requested mod &e" + name + " &3to be reviewed";
Broadcast.staff().prefix("ModReview").message(json(message).command("/modreview requests")).send();
}
use of gg.projecteden.nexus.framework.commands.models.annotations.Cooldown in project Nexus by ProjectEdenGG.
the class CurrentTimeCommand method update.
@Path("update [player]")
@Cooldown(value = TickTime.HOUR, bypass = Group.SENIOR_STAFF)
void update(@Arg(value = "self", permission = Group.SENIOR_STAFF) Player player) {
final String name = isSelf(player) ? "your" : Nickname.of(player) + "'s";
send(PREFIX + "Updating " + name + " timezone information...");
GeoIP geoip = service.request(player.getUniqueId(), player.getAddress().getHostString());
if (geoip == null || geoip.getIp() == null)
error("There was an error while updating " + name + " timezone. Please try again later.");
service.save(geoip);
send(PREFIX + "Updated " + name + " timezone to &3" + geoip.getTimezone());
}
Aggregations