Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieJW authored Jun 18, 2021
1 parent cf2ec1b commit e835b44
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/com/olliejw/antilavacast/AntiLavaCast.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
12 changes: 12 additions & 0 deletions src/main/java/com/olliejw/antilavacast/Events/NoLavaCast.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
7 changes: 7 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e835b44

Please sign in to comment.