Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
style: Only one statement per line.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriDevs committed May 13, 2021
1 parent 120c7f7 commit 58ad1b2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main/java/de/kiridevs/kiricore/managers/PvpManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,23 @@ public class PvpManager {
* A list including the strings that are recognized
* as arguments for /pvp to allow PVP
*/
public static final ArrayList<String> enableStrings = new ArrayList<>()
{{ add("y"); add("on"); add("yes"); add("true"); }};
public static final ArrayList<String> enableStrings = new ArrayList<>() {{
add("y");
add("on");
add("yes");
add("true");
}};

/**
* A list including the strings that are recognized
* as arguments for /pvp to disallow PVP
*/
public static final ArrayList<String> disableStrings = new ArrayList<>()
{{ add("n"); add("no"); add("off"); add("false"); }};
public static final ArrayList<String> disableStrings = new ArrayList<>() {{
add("n");
add("no");
add("off");
add("false");
}};

private static boolean doAllowPvp = true;

Expand Down

0 comments on commit 58ad1b2

Please sign in to comment.