summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/yulqen/test/Test.java
blob: ddca47861d1488d62bf87716718b56f601d040cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.yulqen.test;

import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.List;

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);
        this.getCommand("toss").setExecutor(new GiveMeDiamond());
        this.getCommand("killzombies").setExecutor(new KillZombies());
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}