block place deny

drose

Supporter
Supporter
Member
Simple.

make a normal plugin with onEnable void and make it extend JavaPlugin and implements Listener

then go on the onEnable void and type
Bukkit.getPluginManager().registerEvents(this, this);

and then put this under the onEnable void.

Code:
@EventHandler
public void onBlockPlace(BlockPlaceEvent e) {
if(e.getBlockPlaced.getType() == Material.SPONGE) {
e.setCancelled(true)
}

Sorry if there's something wrong on it.
have fun :D
ps: dont forget to make a plugin.yml
 
BlackSpigot General Chat
Rules Help Users
    I @ iRawstep: Does anyone know if I can change my username?
    Top