Add server interface
This commit is contained in:
parent
10eed8d0d1
commit
cced985f58
|
@ -0,0 +1,9 @@
|
||||||
|
package com.ryderbelserion.crazyauctions.platform;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
public interface Server {
|
||||||
|
|
||||||
|
File getFolder();
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.ryderbelserion.crazyauctions.platform;
|
||||||
|
|
||||||
|
import com.ryderbelserion.crazyauctions.CrazyAuctionsPaper;
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
public class PaperServer implements Server {
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
private final CrazyAuctionsPaper plugin = JavaPlugin.getPlugin(CrazyAuctionsPaper.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public File getFolder() {
|
||||||
|
return this.plugin.getDataFolder();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue