Created
October 4, 2014 06:34
-
-
Save keepoff07/8a6f0690e7d6b5889b5b to your computer and use it in GitHub Desktop.
TNTPrimedEventSample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler | |
public void onTNTPrimed(TNTPrimedEvent event){ | |
//着火済みTNTが火打石による着火なら | |
if(event.getReason().equals(TNTPrimedEvent.SpawnReson.IGNITE)){ | |
Player player = event.getPlayer(); | |
player.sendMessage("You ignition TNT !"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment