package au.com.mineauz.minigamesregions.actions;

import java.util.Map;

import org.bukkit.configuration.file.FileConfiguration;

import au.com.mineauz.minigames.MinigamePlayer;
import au.com.mineauz.minigames.menu.Menu;
import au.com.mineauz.minigamesregions.Node;
import au.com.mineauz.minigamesregions.Region;

public abstract class ActionInterface {
	public abstract String getName();
	public abstract String getCategory();
	public abstract void describe(Map<String, Object> out);
	public abstract boolean useInRegions();
	public abstract boolean useInNodes();
	public abstract void executeRegionAction(MinigamePlayer player, Region region);
	public abstract void executeNodeAction(MinigamePlayer player, Node node);
	public abstract void saveArguments(FileConfiguration config, String path);
	public abstract void loadArguments(FileConfiguration config, String path);
	public abstract boolean displayMenu(MinigamePlayer player, Menu previous);
}

@@ -66,16 +66,163 @@
 l.Map;%0A%0A
+import au.com.mineauz.minigames.Minigames;%0Aimport au.com.mineauz.minigames.minigame.Minigame;%0Aimport au.com.mineauz.minigames.script.ScriptObject;%0A
 import o
@@ -1089,10 +1089,272 @@
 vious);%0A
+%09public void debug(MinigamePlayer p, ScriptObject obj)%7B%0A%09%09if (Minigames.plugin.isDebugging())%7B%0A%09%09%09Minigames.plugin.getLogger().info(%22Debug: Execute on Obj:%22 + String.valueOf(obj) + %22 as Action: %22 + String.valueOf(this) + %22 Player: %22 +String.valueOf(p));%0A%09%09%7D%0A%09%7D%0A%0A
 %7D%0A

Add debug messages for all region actions..