Gameplay
Commands to control the game mode, weather, time and other game rules.
Reference
gameplay.setGameMode(
SURVIVAL,
mobs.target(LOCAL_PLAYER)
);
gameplay.timeSet(gameplay.time(DAY));
gameplay.timeAdd(0);
gameplay.timeQuery(TimeQuery.GameTime);
gameplay.setWeather(Weather.Clear);
gameplay.toggleDownfall();
gameplay.xp(10, mobs.target(LOCAL_PLAYER));
gameplay.setGameRule(PV_P, false);
gameplay.title(mobs.target(ALL_PLAYERS), "Title", "Sub title");