mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 03:25:50 +00:00
Fix build errors (#2018)
Fixes build errors caused by the warp owner PRs (#1961 and #2017)
This commit is contained in:
parent
967bb44d94
commit
3d60aa1747
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue