Level level = player.get(Level.class);
if (level == null) {
throw new CommandException(player.getDisplayName() + " does not have experience.");
}
level.addExperience(amount);
player.sendMessage(plugin.getPrefix() + ChatStyle.GREEN + "Your experience has been set to " + ChatStyle.WHITE + amount + ChatStyle.GREEN + ".");
}
@CommandDescription (aliases = "weather", usage = "<0|1|2|clear|rain|thunder> (0 = CLEAR, 1 = RAIN/SNOW, 2 = THUNDERSTORM) [world]", desc = "Changes the weather")
@Permissible ("vanilla.command.weather")