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