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 @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); String filename = StringUtil.sanitizeFileName(name);
EssentialsConf conf = warpPoints.get(new StringIgnoreCase(name)); EssentialsConf conf = warpPoints.get(new StringIgnoreCase(name));
if (conf == null) { if (conf == null) {

View file

@ -1,11 +1,13 @@
package com.earth2me.essentials.api; package com.earth2me.essentials.api;
import com.earth2me.essentials.IConf; import com.earth2me.essentials.IConf;
import com.earth2me.essentials.IUser;
import com.earth2me.essentials.commands.WarpNotFoundException; import com.earth2me.essentials.commands.WarpNotFoundException;
import org.bukkit.Location; import org.bukkit.Location;
import java.io.File; import java.io.File;
import java.util.Collection; import java.util.Collection;
import java.util.UUID;
public interface IWarps extends IConf { public interface IWarps extends IConf {
@ -63,7 +65,7 @@ public interface IWarps extends IConf {
* *
* @throws Exception * @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 * Gets Lastowner UUID