From 3d60aa17476c67c8244d45f07d2b4289da2bd09b Mon Sep 17 00:00:00 2001 From: md678685 Date: Mon, 28 May 2018 20:21:23 +0100 Subject: [PATCH] Fix build errors (#2018) Fixes build errors caused by the warp owner PRs (#1961 and #2017) --- Essentials/src/com/earth2me/essentials/Warps.java | 2 +- Essentials/src/com/earth2me/essentials/api/IWarps.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/Warps.java b/Essentials/src/com/earth2me/essentials/Warps.java index 785d6b4c7..f66fce9d5 100644 --- a/Essentials/src/com/earth2me/essentials/Warps.java +++ b/Essentials/src/com/earth2me/essentials/Warps.java @@ -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) { diff --git a/Essentials/src/com/earth2me/essentials/api/IWarps.java b/Essentials/src/com/earth2me/essentials/api/IWarps.java index ab94d2187..3a5dcb7f1 100644 --- a/Essentials/src/com/earth2me/essentials/api/IWarps.java +++ b/Essentials/src/com/earth2me/essentials/api/IWarps.java @@ -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