mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 19:44:15 +02:00
Prototype for an abstraction layer for bukkit/mc/spout...
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
package com.earth2me.essentials.api.server;
|
||||||
|
|
||||||
|
public interface IPermission {
|
||||||
|
|
||||||
|
}
|
@@ -0,0 +1,8 @@
|
|||||||
|
package com.earth2me.essentials.api.server;
|
||||||
|
|
||||||
|
public interface IPermissionsManager {
|
||||||
|
|
||||||
|
IPermission registerPermission();
|
||||||
|
|
||||||
|
boolean checkPermission(IPlayer player, IPermission perm);
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
package com.earth2me.essentials.api.server;
|
||||||
|
|
||||||
|
public interface IPlayer {
|
||||||
|
|
||||||
|
}
|
@@ -0,0 +1,5 @@
|
|||||||
|
package com.earth2me.essentials.api.server;
|
||||||
|
|
||||||
|
public interface IServer {
|
||||||
|
|
||||||
|
}
|
@@ -0,0 +1,9 @@
|
|||||||
|
package com.earth2me.essentials.bukkit;
|
||||||
|
|
||||||
|
import com.earth2me.essentials.api.server.IServer;
|
||||||
|
import lombok.Delegate;
|
||||||
|
|
||||||
|
public class Server implements IServer {
|
||||||
|
@Delegate
|
||||||
|
private org.bukkit.Server server;
|
||||||
|
}
|
Reference in New Issue
Block a user