Advertisement
riking

monstrosity

Sep 2nd, 2013
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. package com.github.riking.checkmcmmoblockstore;
  2.  
  3. import org.bukkit.ChatColor;import org.bukkit.Material;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerInteractEvent;import org.bukkit.plugin.java.JavaPlugin;import com.gmail.nossr50.mcMMO;
  4.  
  5. public class Main extends JavaPlugin implements Listener {
  6.     public void onEnable(){ getServer().getPluginManager().registerEvents((Listener) this,this);}
  7.    @org.bukkit.event.EventHandler public void onInteract(PlayerInteractEvent e) { try {
  8.       if( e.getPlayer().getItemInHand().getType() ==Material.FEATHER) {
  9.            e.getPlayer().sendMessage("That block is marked " + (mcMMO.getPlaceStore().isTrue(e.getPlayer().getTargetBlock(null,  10))? (ChatColor.YELLOW + "TRUE") : (ChatColor.AQUA + "FALSE")) + " in the mcMMO PlaceStore.");
  10.   }} catch (NullPointerException f) {}     } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement