summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/IEssentials.java
blob: 8cc905355acfefbc38b4024fafed7dd5c64d13a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.earth2me.essentials;

import com.earth2me.essentials.register.payment.Methods;
import java.io.File;
import java.util.List;
import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.scheduler.CraftScheduler;
import org.bukkit.plugin.PluginDescriptionFile;

public interface IEssentials
{
	void addReloadListener(IConf listener);
			
	void reload();
	
	boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath);
	
	User getUser(Object base);
	
	User getOfflineUser(String name);
	
	World getWorld(String name);
	
	int broadcastMessage(String name, String message);

	Settings getSettings();
	
	CraftScheduler getScheduler();
	
	String[] getMotd(CommandSender sender, String def);
	
	String[] getLines(CommandSender sender, String node, String def);
	
	Jail getJail();
	
	Warps getWarps();
	
	Worth getWorth();
	
	Backup getBackup();
	
	Spawn getSpawn();
	
	void loadBanList();
	
	public boolean isRegisterFallbackEnabled();
	
	public Methods getPaymentMethod();
	
	Server getServer();
	
	File getDataFolder();
	
	PluginDescriptionFile getDescription();
	
	int scheduleAsyncDelayedTask(Runnable run);
	
	int scheduleSyncDelayedTask(Runnable run);
	
	int scheduleSyncRepeatingTask(final Runnable run, long delay, long period);

	List<String> getBans();

	List<String> getBannedIps();
}