summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/api/IPlugin.java
blob: 83565f35ee0b8ccc962ae91ec0d6373223a820e8 (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
package net.ess3.api;

import java.io.File;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

public interface IPlugin extends Plugin {
	IEssentials getEssentials();
	
	int scheduleAsyncDelayedTask(final Runnable run);

	int scheduleSyncDelayedTask(final Runnable run);

	int scheduleSyncDelayedTask(final Runnable run, final long delay);

	int scheduleSyncRepeatingTask(final Runnable run, final long delay, final long period);

	int scheduleAsyncRepeatingTask(final Runnable run, final long delay, final long period);

	File getRootFolder();

	void cancelTask(final int taskId);

	String getVersion();

	Class getClassByName(final String name);

	Location callRespawnEvent(Player player, Location loc, boolean bedSpawn);

	void callSuicideEvent(Player player);
}