oops forgot to pull before i started working

This commit is contained in:
Steven Lawson 2011-09-26 23:14:32 -04:00
parent 3ba39d40c2
commit cd5b9910fe
2 changed files with 12 additions and 0 deletions

View file

@ -81,6 +81,7 @@ public class TotalFreedomMod extends JavaPlugin
pm.registerEvent(Event.Type.BLOCK_BURN, blockListener, Event.Priority.High, this);
pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.High, this);
pm.registerEvent(Event.Type.PLAYER_COMMAND_PREPROCESS, playerListener, Event.Priority.High, this);
pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.High, this);
log.log(Level.INFO, "[Total Freedom Mod] - Enabled! - Version: " + this.getDescription().getVersion() + " by Madgeek1450");
log.log(Level.INFO, "[Total Freedom Mod] - Loaded superadmins: " + implodeStringList(", ", superadmins));

View file

@ -3,7 +3,9 @@ package me.StevenLawson.TotalFreedomMod;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerListener;
class TotalFreedomModPlayerListener extends PlayerListener
@ -16,6 +18,15 @@ class TotalFreedomModPlayerListener extends PlayerListener
plugin = instance;
}
@Override
public void onPlayerInteract(PlayerInteractEvent event)
{
if (event.getAction() == Action.RIGHT_CLICK_BLOCK)
{
log.info("Right Click Block: " + event.getMaterial() + " - " + event.getItem());
}
}
@Override
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
{