Use maps instead of lists where applicable. Start work on API

This commit is contained in:
Esophose 2020-01-05 04:39:27 -07:00
parent 7774e500ca
commit ca9cf08c70
19 changed files with 283 additions and 109 deletions

View file

@ -531,7 +531,7 @@ public class FixedCommandModule implements CommandModule {
private void handleList(PPlayer pplayer, Player p, String[] args) {
LocaleManager localeManager = PlayerParticles.getInstance().getManager(LocaleManager.class);
List<Integer> ids = pplayer.getFixedEffectIds();
List<Integer> ids = new ArrayList<>(pplayer.getFixedEffectIds());
Collections.sort(ids);
if (ids.isEmpty()) {