mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 11:44:42 +02:00
CommandCaller
This commit is contained in:
@ -5,7 +5,10 @@ import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.intellectualcrafters.plot.PS;
|
||||
import com.intellectualcrafters.plot.commands.RequiredType;
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.database.DBFunc;
|
||||
import com.intellectualcrafters.plot.util.MainUtil;
|
||||
import com.plotsquared.bukkit.util.bukkit.BukkitUtil;
|
||||
|
||||
public class ConsolePlayer implements PlotPlayer {
|
||||
@ -67,6 +70,11 @@ public class ConsolePlayer implements PlotPlayer {
|
||||
public void sendMessage(String message) {
|
||||
PS.log(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendMessage(C c, String... args) {
|
||||
MainUtil.sendMessage(this, c, args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void teleport(Location loc) {
|
||||
@ -122,5 +130,10 @@ public class ConsolePlayer implements PlotPlayer {
|
||||
public void deleteMeta(String key) {
|
||||
this.meta.remove(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RequiredType getSuperCaller() {
|
||||
return RequiredType.CONSOLE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,12 +2,14 @@ package com.intellectualcrafters.plot.object;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import com.intellectualsites.commands.CommandCaller;
|
||||
|
||||
/**
|
||||
* Created 2015-02-20 for PlotSquared
|
||||
*
|
||||
* @author Citymonstret
|
||||
*/
|
||||
public interface PlotPlayer {
|
||||
public interface PlotPlayer extends CommandCaller {
|
||||
|
||||
public long getPreviousLogin();
|
||||
|
||||
|
Reference in New Issue
Block a user