CommandCaller

This commit is contained in:
boy0001
2015-07-28 01:14:38 +10:00
parent a39ec22c8c
commit 5a98c5410e
18 changed files with 163 additions and 215 deletions

View File

@ -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;
}
}

View File

@ -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();