diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/IEssentials.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/IEssentials.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Essentials/src/com/earth2me/essentials/IEssentials.java b/Essentials/src/com/earth2me/essentials/IEssentials.java index 9dca96e81..20c6c300e 100644 --- a/Essentials/src/com/earth2me/essentials/IEssentials.java +++ b/Essentials/src/com/earth2me/essentials/IEssentials.java @@ -1,5 +1,6 @@ package com.earth2me.essentials; +import com.earth2me.essentials.api.IJails; import com.earth2me.essentials.perm.PermissionsHandler; import com.earth2me.essentials.register.payment.Methods; import org.bukkit.World; @@ -8,17 +9,22 @@ import org.bukkit.command.CommandSender; import org.bukkit.plugin.Plugin; import org.bukkit.scheduler.BukkitScheduler; - +/** + * @deprecated This will be moved to the api package soon + */ +@Deprecated public interface IEssentials extends Plugin { void addReloadListener(IConf listener); void reload(); - boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath, String permissionPrefix); + boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath, String permissionPrefix, IEssentialsModule module); User getUser(Object base); + I18n getI18n(); + User getOfflineUser(String name); World getWorld(String name); @@ -29,11 +35,7 @@ public interface IEssentials extends Plugin BukkitScheduler getScheduler(); - String[] getMotd(CommandSender sender, String def); - - String[] getLines(CommandSender sender, String node, String def); - - Jail getJail(); + IJails getJails(); Warps getWarps(); @@ -41,8 +43,6 @@ public interface IEssentials extends Plugin Backup getBackup(); - Spawn getSpawn(); - Methods getPaymentMethod(); int scheduleAsyncDelayedTask(Runnable run); @@ -57,6 +57,8 @@ public interface IEssentials extends Plugin PermissionsHandler getPermissionsHandler(); + AlternativeCommandsHandler getAlternativeCommandsHandler(); + void showError(final CommandSender sender, final Throwable exception, final String commandLabel); ItemDb getItemDb(); |