Some more encapsulation

This commit is contained in:
Daniil Z committed 2021-03-01 21:05:59 +03:00
1 parent afafcee2bb
commit 45f99cacf6
8 files changed
+33 -17

No files matched your search

@@ -49,7 +49,7 @@ public class HomeCommand extends CommandBase {
// TODO Remove
// This HashMap stores a cache of a player's homes that is displayed when a user presses TAB.
// Owner UUID, Home Name
public static Map<UUID, List<String>> homeTabCache = new HashMap<>();
private static Map<UUID, List<String>> homeTabCache = new HashMap<>();
// This method updates a player's home cache.
public static void updatePlayerHomeCache(Player p) {
@@ -85,5 +85,9 @@ public class HomeCommand extends CommandBase {
return Collections.emptyList();
}
}
public static Map<UUID, List<String>> getHomeTabCache() {
return homeTabCache;
}
}
}