mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 02:24:16 +02:00
@@ -12,7 +12,7 @@ public interface IEssentials extends Plugin
|
||||
void addReloadListener(IReload listener);
|
||||
|
||||
IUser getUser(Player player);
|
||||
|
||||
|
||||
IUser getUser(String playerName);
|
||||
|
||||
int broadcastMessage(IUser sender, String message);
|
||||
@@ -24,7 +24,7 @@ public interface IEssentials extends Plugin
|
||||
IGroups getGroups();
|
||||
|
||||
IJails getJails();
|
||||
|
||||
|
||||
IKits getKits();
|
||||
|
||||
IWarps getWarps();
|
||||
@@ -36,7 +36,7 @@ public interface IEssentials extends Plugin
|
||||
IUserMap getUserMap();
|
||||
|
||||
IBackup getBackup();
|
||||
|
||||
|
||||
ICommandHandler getCommandHandler();
|
||||
|
||||
World getWorld(String name);
|
||||
@@ -52,7 +52,6 @@ public interface IEssentials extends Plugin
|
||||
int scheduleSyncRepeatingTask(Runnable run, long delay, long period);
|
||||
|
||||
//IPermissionsHandler getPermissionsHandler();
|
||||
|
||||
void reload();
|
||||
|
||||
TNTExplodeListener getTNTListener();
|
||||
@@ -60,6 +59,6 @@ public interface IEssentials extends Plugin
|
||||
void setGroups(IGroups groups);
|
||||
|
||||
void removeReloadListener(IReload groups);
|
||||
|
||||
|
||||
IEconomy getEconomy();
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.earth2me.essentials.api;
|
||||
|
||||
|
||||
public interface IEssentialsModule
|
||||
{
|
||||
}
|
||||
|
@@ -6,8 +6,8 @@ import org.bukkit.inventory.ItemStack;
|
||||
public interface IItemDb extends IReload
|
||||
{
|
||||
ItemStack get(final String name, final IUser user) throws Exception;
|
||||
|
||||
|
||||
ItemStack get(final String name, final int quantity) throws Exception;
|
||||
|
||||
|
||||
ItemStack get(final String name) throws Exception;
|
||||
}
|
||||
|
@@ -6,13 +6,13 @@ import java.util.Collection;
|
||||
|
||||
public interface IKits extends IReload
|
||||
{
|
||||
Kit getKit(String kit)throws Exception;
|
||||
|
||||
Kit getKit(String kit) throws Exception;
|
||||
|
||||
void sendKit(IUser user, String kit) throws Exception;
|
||||
|
||||
|
||||
void sendKit(IUser user, Kit kit) throws Exception;
|
||||
|
||||
|
||||
Collection<String> getList() throws Exception;
|
||||
|
||||
|
||||
boolean isEmpty();
|
||||
}
|
||||
|
@@ -8,10 +8,10 @@ import org.bukkit.permissions.PermissionDefault;
|
||||
public interface IPermission
|
||||
{
|
||||
String getPermission();
|
||||
|
||||
|
||||
boolean isAuthorized(CommandSender sender);
|
||||
|
||||
Permission getBukkitPermission();
|
||||
|
||||
|
||||
PermissionDefault getPermissionDefault();
|
||||
}
|
||||
|
@@ -2,7 +2,9 @@ package com.earth2me.essentials.api;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public interface IReplyTo {
|
||||
|
||||
public interface IReplyTo
|
||||
{
|
||||
void setReplyTo(CommandSender user);
|
||||
|
||||
CommandSender getReplyTo();
|
||||
|
@@ -9,7 +9,7 @@ import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||
public interface ITeleport
|
||||
{
|
||||
void now(Location loc, boolean cooldown, TeleportCause cause) throws Exception;
|
||||
|
||||
|
||||
void now(Entity entity, boolean cooldown, TeleportCause cause) throws Exception;
|
||||
|
||||
void back(Trade chargeFor) throws Exception;
|
||||
|
@@ -24,9 +24,9 @@ public interface IUser extends Player, IStorageObjectHolder<UserData>, IReload,
|
||||
void giveMoney(double value);
|
||||
|
||||
void giveMoney(double value, CommandSender initiator);
|
||||
|
||||
|
||||
void giveItems(ItemStack itemStack, Boolean canSpew) throws ChargeException;
|
||||
|
||||
|
||||
void giveItems(List<ItemStack> itemStacks, Boolean canSpew) throws ChargeException;
|
||||
|
||||
void setMoney(double value);
|
||||
|
@@ -10,7 +10,7 @@ public interface IUserMap extends IReload
|
||||
boolean userExists(final String name);
|
||||
|
||||
IUser getUser(final Player player);
|
||||
|
||||
|
||||
IUser getUser(final String playerName);
|
||||
|
||||
void removeUser(final String name) throws InvalidNameException;
|
||||
|
@@ -6,5 +6,4 @@ import com.earth2me.essentials.storage.IStorageObjectHolder;
|
||||
|
||||
public interface IWarp extends IStorageObjectHolder<Warp>
|
||||
{
|
||||
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@ package com.earth2me.essentials.api;
|
||||
|
||||
public class InvalidNameException extends Exception
|
||||
{
|
||||
|
||||
public InvalidNameException(Throwable thrwbl)
|
||||
{
|
||||
super(thrwbl);
|
||||
|
Reference in New Issue
Block a user