Skip to content

Commit

Permalink
Added default homes limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed May 8, 2020
1 parent c1ea0dd commit 6a28473
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/io/github/at/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ public static void setDefaults() throws IOException {

config.addDefault("back.teleport-causes", new ArrayList<>(Arrays.asList("COMMAND", "PLUGIN", "SPECTATE")));

config.addDefault("homes.default-limit", -1);

config.options().copyDefaults(true);
save();
}
Expand Down Expand Up @@ -279,4 +281,8 @@ public static boolean containsBlacklistedWorld(String worldName, String pos) {
public static boolean isAllowingTeleportBetweenWorlds() {
return config.getBoolean("teleport-limit.allow-teleport-within-world");
}

public static int getDefaultHomesLimit() {
return config.getInt("homes.default-limit");
}
}

0 comments on commit 6a28473

Please sign in to comment.