mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Some more encapsulation
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user