Skip to content

Commit

Permalink
Release 5.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Apr 7, 2023
1 parent bdd331c commit 44153cd
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tk.shanebee.hg</groupId>
<artifactId>HungerGames</artifactId>
<version>5.2.3</version>
<version>5.2.4</version>

<properties>
<maven.compiler.source>11</maven.compiler.source>
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/tk/shanebee/hg/HG.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ public void loadPlugin(boolean load) {
party = new Parties();
}

//noinspection ConstantConditions
getCommand("hg").setExecutor(new CommandListener(this));
getCommand("hg").setExecutor(new CommandListener(this));
if (load) {
loadCmds();
}
Expand Down Expand Up @@ -264,7 +263,6 @@ private void loadCmds() {
for (String bc : cmds.keySet()) {
getServer().getPluginManager().addPermission(new Permission("hg." + bc));
if (cArray.contains(bc))
//noinspection ConstantConditions
getServer().getPluginManager().getPermission("hg." + bc).setDefault(PermissionDefault.TRUE);

}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/data/ArenaConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public void saveCustomConfig() {
}
}

@SuppressWarnings("ConstantConditions")
public void load() {
Util.log("Loading arenas...");
Configuration pluginConfig = plugin.getHGConfig().getConfig();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/data/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ private void loadConfig() {
}

// Used to update config
@SuppressWarnings("ConstantConditions")
private void matchConfig(FileConfiguration config, File file) {
try {
boolean hasUpdated = false;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/data/Language.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ private void loadLangFile() {
}

// Used to update config
@SuppressWarnings("ConstantConditions")
private void matchConfig(FileConfiguration config, File file) {
try {
boolean hasUpdated = false;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/data/Leaderboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ private void loadLeaderboard() {

private void getLeaderboard(String path, Map<String, Integer> map, List<String> scores, List<String> players) {
if (leaderboardConfig.getConfigurationSection(path) != null) {
//noinspection ConstantConditions
for (String key : leaderboardConfig.getConfigurationSection(path).getKeys(false)) {
map.put(key, leaderboardConfig.getInt(path + "." + key));
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/data/PlayerData.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public void restore(Player player) {
}

// Restores later if player has an item in their inventory which changes their max health value
@SuppressWarnings("ConstantConditions")
private void restoreHealth(Player player) {
double att = player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();
if (health > att) {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/game/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class Board {
private final Team team;
private final String[] entries = new String[]{"&1&r", "&2&r", "&3&r", "&4&r", "&5&r", "&6&r", "&7&r", "&8&r", "&9&r", "&0&r", "&a&r", "&b&r", "&c&r", "&d&r", "&e&r"};

@SuppressWarnings("ConstantConditions")
public Board(Game game) {
this.game = game;
this.plugin = game.plugin;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/game/GameBlockData.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ void updateLobbyBlock() {
* @param sign The sign to which the lobby will be set at
* @return True if lobby is set
*/
@SuppressWarnings("ConstantConditions")
public boolean setLobbyBlock(Sign sign) {
try {
this.sign1 = sign;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/game/GameCommandData.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public void addCommand(String command, CommandType type) {
* @param commandType Type of command to run
* @param player The player involved (can be null)
*/
@SuppressWarnings("ConstantConditions")
public void runCommands(CommandType commandType, @Nullable Player player) {
if (commands == null) return;
for (String command : commands) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public KitManager setGameKits(String gameName, Configuration config) {
return kit;
}

@SuppressWarnings("ConstantConditions")
private void kitCreator(Configuration config, KitManager kit, @Nullable String gameName) {
if (gameName == null) gameName = "";
if (config.getConfigurationSection(gameName + "kits") == null) return;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/tk/shanebee/hg/managers/PlayerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public Game getGame(Player player) {
* @param uuid UUID of player to get game
* @return Game of player, null if player is not in a game
*/
@SuppressWarnings("ConstantConditions")
@Nullable
public Game getGame(UUID uuid) {
if (hasPlayerData(uuid))
Expand Down

0 comments on commit 44153cd

Please sign in to comment.