mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
package com.intellectualcrafters.plot.commands.callers;
 | 
						|
 | 
						|
import com.intellectualcrafters.plot.PS;
 | 
						|
import com.intellectualcrafters.plot.config.C;
 | 
						|
import com.intellectualcrafters.plot.util.MainUtil;
 | 
						|
import com.intellectualsites.commands.Argument;
 | 
						|
import com.intellectualsites.commands.Command;
 | 
						|
import com.intellectualsites.commands.CommandManager;
 | 
						|
import com.intellectualsites.commands.CommandCaller;
 | 
						|
 | 
						|
public class ConsoleCaller implements CommandCaller<PS> {
 | 
						|
    @Override
 | 
						|
    public boolean hasPermission(String permission) {
 | 
						|
        return true;
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public void message(String message) {
 | 
						|
        MainUtil.sendConsoleMessage(message);
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public PS getSuperCaller() {
 | 
						|
        return PS.get();
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public void message(C c, String... args) {
 | 
						|
        MainUtil.sendConsoleMessage(c, args);
 | 
						|
    }
 | 
						|
 | 
						|
    @Override
 | 
						|
    public void sendRequiredArgumentsList(CommandManager manager, Command cmd, Argument[] required) {
 | 
						|
        message(C.COMMAND_SYNTAX, cmd.getUsage());
 | 
						|
    }
 | 
						|
}
 |