T2CodeLib/src/main/java/net/t2code/t2codelib/BUNGEE/api/commands/T2CBcmd.java

14 lines
489 B
Java
Raw Normal View History

2022-10-25 13:03:07 +00:00
package net.t2code.t2codelib.BUNGEE.api.commands;
2021-11-28 01:13:21 +00:00
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.connection.ProxiedPlayer;
2022-10-25 13:03:07 +00:00
public class T2CBcmd {
2021-11-28 01:13:21 +00:00
public static void Console(String cmd){
ProxyServer.getInstance().getPluginManager().dispatchCommand(ProxyServer.getInstance().getConsole(), cmd);
}
public static void Player(ProxiedPlayer player, String cmd){
ProxyServer.getInstance().getPluginManager().dispatchCommand(player, cmd);
}
}