@@ -33,7 +33,7 @@ private Networks() {
33
33
}
34
34
35
35
public static Set <Network > getAll () {
36
- try {
36
+ try {
37
37
if (Bukkit .isPrimaryThread () && Bukkit .getPluginManager ().isPluginEnabled ("Skoice" )) {
38
38
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
39
39
}
@@ -43,7 +43,7 @@ public static Set<Network> getAll() {
43
43
}
44
44
45
45
public static Set <Network > getInitialized () {
46
- try {
46
+ try {
47
47
if (Bukkit .isPrimaryThread ()) {
48
48
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
49
49
}
@@ -55,7 +55,7 @@ public static Set<Network> getInitialized() {
55
55
}
56
56
57
57
public static Set <ProximityChannel > getProximityChannels () {
58
- try {
58
+ try {
59
59
if (Bukkit .isPrimaryThread ()) {
60
60
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
61
61
}
@@ -67,7 +67,7 @@ public static Set<ProximityChannel> getProximityChannels() {
67
67
}
68
68
69
69
public static void add (Network network ) {
70
- try {
70
+ try {
71
71
if (Bukkit .isPrimaryThread ()) {
72
72
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
73
73
}
@@ -77,7 +77,7 @@ public static void add(Network network) {
77
77
}
78
78
79
79
public static void remove (Network network ) {
80
- try {
80
+ try {
81
81
if (Bukkit .isPrimaryThread ()) {
82
82
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
83
83
}
@@ -95,7 +95,7 @@ public static void merge(Network network1, Network network2) {
95
95
}
96
96
97
97
public static void clean () {
98
- try {
98
+ try {
99
99
if (Bukkit .isPrimaryThread ()) {
100
100
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
101
101
}
@@ -107,7 +107,7 @@ public static void clean() {
107
107
}
108
108
109
109
public static void clear () {
110
- try {
110
+ try {
111
111
if (Bukkit .isPrimaryThread () && Bukkit .getPluginManager ().isPluginEnabled ("Skoice" )) {
112
112
new IllegalStateException ("This method should not be called from the main thread." ).printStackTrace ();
113
113
}
0 commit comments