@@ -26,6 +26,7 @@ public CustomJoinAndQuitCmd(@NotNull CustomJoinAndQuitMessages plugin) {
26
26
public boolean onCommand (@ NotNull CommandSender sender , @ NotNull Command cmd , @ NotNull String label , String [] args ) {
27
27
if (!(sender instanceof Player )) {
28
28
if (args .length >= 1 ) {
29
+
29
30
if (args [0 ].equalsIgnoreCase ("help" )) {
30
31
List <String > list = plugin .Locale ().help_1 ;
31
32
Util .sendColorMessage (sender , "&5-=-=-=-=-=-=-=-=-=-=-=&6[&d" + plugin .name + "&6]&5=-=-=-=-=-=-=-=-=-=-=-" );
@@ -35,24 +36,27 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @N
35
36
Util .sendColorMessage (sender , "&5-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" );
36
37
} else if (args [0 ].equalsIgnoreCase ("reload" )) {
37
38
plugin .reloadAllFiles ();
38
- Util .sendColorMessage (sender , Util .getPrefix () + " " + plugin .Locale ().reload );
39
+ Util .sendColorMessage (sender , Util .getPrefix (false ) + plugin .Locale ().reload );
39
40
} else if (args [0 ].equalsIgnoreCase ("info" )) {
40
- Util .sendColorMessage (sender , "&5 <|| =-=-=-=-=" + Util . getPrefix () + "&5=-=-=-=-=-=-" );
41
- Util .sendColorMessage (sender , "&5 <|| &c* &bName : &3" + plugin . name );
42
- Util .sendColorMessage (sender , "&5 <|| &c* &bAuthor : &3jonagamerpro1234" );
43
- Util .sendColorMessage (sender , "&5 <|| &c* &bVersion : &a " + plugin .version );
44
- Util .sendColorMessage (sender , "&5 <|| &c* &bUpdate : &e" + plugin . useLatestversion );
45
- Util .sendColorMessage (sender , "&5 <|| =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" );
41
+ Util .sendColorMessage (sender , "&5- =-=-=-=-=[&b " + plugin . name + "&5] =-=-=-=-=-=-" );
42
+ Util .sendColorMessage (sender , "&6 ● &bAuthor : &3jonagamerpro1234" );
43
+ Util .sendColorMessage (sender , "&6 ● &eYour Version : &7" + plugin . version );
44
+ Util .sendColorMessage (sender , "&6 ● &aLast version : &7 " + plugin .getUpdateVersion () );
45
+ Util .sendColorMessage (sender , "&6 ● &9Discord : &7https://discord.gg/c5GhQDQCK5" );
46
+ Util .sendColorMessage (sender , "&5-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" );
46
47
} else {
47
- Util .sendColorMessage (sender , Util .getPrefix () + " " + plugin .Locale ().Error_Cmd );
48
+ Util .sendColorMessage (sender , Util .getPrefix (true ) + plugin .Locale ().Error_Cmd );
48
49
}
49
50
return true ;
50
51
}
51
- Util .sendColorMessage (sender , Util .getPrefix () + " " + plugin .Locale ().Help_cmd );
52
+
53
+ Util .sendColorMessage (sender , Util .getPrefix (true ) + plugin .Locale ().Help_cmd );
52
54
return false ;
53
55
}
54
56
Player j = (Player ) sender ;
57
+
55
58
if (args .length >= 1 ) {
59
+
56
60
if (args [0 ].equalsIgnoreCase ("help" )) {
57
61
if ((j .isOp ()) || (j .hasPermission ("Cjm.Help" ))) {
58
62
Util .sendColorMessage (j , "&5-=-=-=-=-=-=-=-=-=-=-=&6[&d" + plugin .name + "&6]&5=-=-=-=-=-=-=-=-=-=-=-" );
@@ -65,28 +69,32 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @N
65
69
}
66
70
return true ;
67
71
}
72
+
68
73
if (args [0 ].equalsIgnoreCase ("reload" ) || args [0 ].equalsIgnoreCase ("rl" )) {
69
74
if ((j .isOp ()) || (j .hasPermission ("Cjm.Reload" ))) {
70
75
plugin .reloadAllFiles ();
71
- Util .sendColorMessage (j , Util .getPrefixPlayer () + " " + plugin .Locale ().reload );
76
+ Util .sendColorMessage (j , Util .getPrefix ( false ) + plugin .Locale ().reload );
72
77
} else {
73
78
Util .sendTextComponent116Hover (j , "TEXT" , plugin .Locale ().No_Permission , plugin .Locale ().No_Permission_Label );
74
79
}
75
80
return true ;
76
81
}
82
+
77
83
if (args [0 ].equalsIgnoreCase ("info" )) {
78
84
Util .sendColorMessage (j , "&5-=-=-=-=-=[&b" + plugin .name + "&5]=-=-=-=-=-=-" );
79
- Util .sendColorMessage (j , "&5> &3Author : &6jonagamerpro1234 " );
80
- Util .sendColorMessage (j , "&5> &3Version : &6 " + plugin .version );
81
- Util .sendColorMessage (j , "&5> &3Last version: &a " + plugin .getUpdateVersion ());
82
- Util .sendColorMessage (j , "&5> &3Discord : &9 https ://discord.gg/c5GhQDQCK5" );
83
- Util .sendColorMessage (j , "&5-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" );
85
+ Util .sendColorMessage (j , "&6 ● &bAuthor : &3jonagamerpro1234 " );
86
+ Util .sendColorMessage (j , "&6 ● &eYour Version : &7 " + plugin .version );
87
+ Util .sendColorMessage (j , "&6 ● &aLast version: &7 " + plugin .getUpdateVersion ());
88
+ Util .sendColorMessage (j , "&6 ● &9Discord : &7https ://discord.gg/c5GhQDQCK5" );
89
+ Util .sendColorMessage (j , "&5-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- " );
84
90
return true ;
85
91
}
86
- Util .sendColorMessage (j , Util .getPrefixPlayer () + " " + plugin .Locale ().Error_Cmd );
92
+
93
+ Util .sendColorMessage (j , Util .getPrefix (true ) + plugin .Locale ().Error_Cmd );
87
94
return true ;
88
95
}
89
- Util .sendColorMessage (j , Util .getPrefixPlayer () + " " + plugin .Locale ().Help_cmd );
96
+
97
+ Util .sendColorMessage (j , Util .getPrefix (true ) + plugin .Locale ().Help_cmd );
90
98
return true ;
91
99
}
92
100
0 commit comments