Fix build errors (#2018)

Fixes build errors caused by the warp owner PRs (#1961 and #2017)
This commit is contained in:
md678685 2018-05-28 20:21:23 +01:00 committed by Trent Hensler
parent 967bb44d94
commit 3d60aa1747
2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public class Warps implements IConf, net.ess3.api.IWarps {
}
@Override
public void setWarp(User user, String name, Location loc) throws Exception {
public void setWarp(IUser user, String name, Location loc) throws Exception {
String filename = StringUtil.sanitizeFileName(name);
EssentialsConf conf = warpPoints.get(new StringIgnoreCase(name));
if (conf == null) {

View File

@ -1,11 +1,13 @@
package com.earth2me.essentials.api;
import com.earth2me.essentials.IConf;
import com.earth2me.essentials.IUser;
import com.earth2me.essentials.commands.WarpNotFoundException;
import org.bukkit.Location;
import java.io.File;
import java.util.Collection;
import java.util.UUID;
public interface IWarps extends IConf {
@ -63,7 +65,7 @@ public interface IWarps extends IConf {
*
* @throws Exception
*/
void setWarp(User user, String name, Location loc) throws Exception;
void setWarp(IUser user, String name, Location loc) throws Exception;
/**
* Gets Lastowner UUID