We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f237ff commit 76d4de9Copy full SHA for 76d4de9
1 file changed
src/main/java/tech/nully/PluginInstaller/PluginList.java
@@ -28,12 +28,20 @@ public static void SendPG2ToSender(CommandSender sender) {
28
for (int i = 15; i < 22; i++) {
29
String Col1 = "";
30
String Col2 = "";
31
+
32
+ // Null checkers for elements in the Array
33
if (AlphaPluginList[i-1] != null) {
34
Col1 = AlphaPluginList[i-1];
35
+ } else {
36
+ Col1 = "N/A";
37
}
38
if (AlphaPluginList[SecondCollumn-1] != null) {
39
Col2 = AlphaPluginList[SecondCollumn-1];
40
41
+ Col2 = "N/A";
42
43
+ // _________________________________________
44
45
sender.sendMessage(i+". "+ Col1 + "" + SecondCollumn + ". " + Col2);
46
SecondCollumn++;
47
0 commit comments