Introduce ConsoleCommandSource. See #155

This commit is contained in:
Andrew Steinborn
2018-12-01 17:08:34 -05:00
parent 773d9f0470
commit a9ae53e527
4 changed files with 23 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
package com.velocitypowered.api.proxy;
import com.velocitypowered.api.command.CommandSource;
/**
* Indicates that the executor of the command is the console.
*/
public interface ConsoleCommandSource extends CommandSource {
}

View File

@@ -99,7 +99,7 @@ public interface ProxyServer {
*
* @return the console command invoker
*/
CommandSource getConsoleCommandSource();
ConsoleCommandSource getConsoleCommandSource();
/**
* Gets the {@link PluginManager} instance.