diff --git a/src/main/java/com/olliejw/antilavacast/AntiLavaCast.java b/src/main/java/com/olliejw/antilavacast/AntiLavaCast.java new file mode 100644 index 0000000..4177546 --- /dev/null +++ b/src/main/java/com/olliejw/antilavacast/AntiLavaCast.java @@ -0,0 +1,12 @@ +package com.olliejw.antilavacast; + +import com.olliejw.antilavacast.Events.NoLavaCast; +import org.bukkit.plugin.java.JavaPlugin; + +public final class AntiLavaCast extends JavaPlugin { + + @Override + public void onEnable() { + getServer().getPluginManager().registerEvents(new NoLavaCast(), this); + } +} diff --git a/src/main/java/com/olliejw/antilavacast/Events/NoLavaCast.java b/src/main/java/com/olliejw/antilavacast/Events/NoLavaCast.java new file mode 100644 index 0000000..37a1531 --- /dev/null +++ b/src/main/java/com/olliejw/antilavacast/Events/NoLavaCast.java @@ -0,0 +1,12 @@ +package com.olliejw.antilavacast.Events; + +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.block.BlockFormEvent; + +public class NoLavaCast implements Listener { + @EventHandler + public void StoneForm(BlockFormEvent e) { + e.setCancelled(true); + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..23e22c6 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,7 @@ +name: AntiLavaCast +version: ${project.version} +main: com.olliejw.antilavacast.AntiLavaCast +api-version: 1.16 +authors: [ OllieJW ] +description: Stops lava casting +website: mc.eutora.com