public static void refreshPatches(Player p) { int[] configs = { 502, 503, 504, 505, 508, 515 }; for (int i = 0; i < configs.Length; i++) { Patch patch = new Patch(p.getLoginDetails().getUsername(), 0); patch.setConfig(configs[i]); setConfig(p, patch); } }