From 1a938011fbd9ddf4e9ce843d0db967ed573ca2a3 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 27 Sep 2020 19:59:24 +0100 Subject: initial commit --- src/main/java/com/yulqen/test/Test.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/com/yulqen/test/Test.java (limited to 'src/main/java/com/yulqen/test/Test.java') diff --git a/src/main/java/com/yulqen/test/Test.java b/src/main/java/com/yulqen/test/Test.java new file mode 100644 index 0000000..52fe7e0 --- /dev/null +++ b/src/main/java/com/yulqen/test/Test.java @@ -0,0 +1,26 @@ +package com.yulqen.test; + +import org.bukkit.Location; +import org.bukkit.World; +import org.bukkit.entity.EntityType; +import org.bukkit.plugin.java.JavaPlugin; + +public final class Test extends JavaPlugin { + + @Override + public void onEnable() { + System.out.println("Test MC Plugin Loaded"); + World world = getServer().getWorld("mad_march_hare"); +// for (int i = 0; i < 20; i++) { +// System.out.println("Spawning " + EntityType.CHICKEN); +// world.spawnEntity(new Location(world, 64.0, 64.0 + (double)(i), 208.0), EntityType.CHICKEN); +// } + getServer().getWorld("mad_march_hare").setFullTime(1000); + getServer().getPluginManager().registerEvents(new EventListening(), this); + } + + @Override + public void onDisable() { + // Plugin shutdown logic + } +} -- cgit v1.2.3