Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.github.riking.checkmcmmoblockstore;
- 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;
- public class Main extends JavaPlugin implements Listener {
- public void onEnable(){ getServer().getPluginManager().registerEvents((Listener) this,this);}
- @org.bukkit.event.EventHandler public void onInteract(PlayerInteractEvent e) { try {
- if( e.getPlayer().getItemInHand().getType() ==Material.FEATHER) {
- 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.");
- }} catch (NullPointerException f) {} } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement