mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Now it extends PluginListener
This commit is contained in:
parent
44e172369f
commit
8f5073a447
@ -1,8 +1,8 @@
|
|||||||
public class vConsole {
|
public class vConsole extends PluginListener {
|
||||||
public boolean onConsoleCommand(String[] split) {
|
public boolean onConsoleCommand(String[] split) {
|
||||||
String args = etc.combineSplit(1, split, "");
|
String args = etc.combineSplit(1, split, "");
|
||||||
//Return true if you don't want the server command to be parsed by the server.
|
//Return true if you don't want the server command to be parsed by the server.
|
||||||
String server = Colors.LightGreen + "[Server]" + Colors.DarkPurple;
|
String server = Colors.LightGreen + "[Server] " + Colors.DarkPurple;
|
||||||
if(split[0].equalsIgnoreCase("stop")){
|
if(split[0].equalsIgnoreCase("stop")){
|
||||||
vChat.gmsg(server + "Rebooting the server");
|
vChat.gmsg(server + "Rebooting the server");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user