blob: c376f2c796dbd15b794f52b9c6fa229a32ffe1f9 (
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.MylesAndMore.tumble;
import com.MylesAndMore.tumble.commands.ReloadCommand;
import com.MylesAndMore.tumble.api.Metrics;
import com.MylesAndMore.tumble.commands.SetWorldConfig;
import com.MylesAndMore.tumble.commands.StartGame;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
@Override
public void onEnable() {
// Register our event listener
getServer().getPluginManager().registerEvents(new EventListener(), this);
// Register commands
this.getCommand("reload").setExecutor(new ReloadCommand());
this.getCommand("setworld").setExecutor(new SetWorldConfig());
this.getCommand("start").setExecutor(new StartGame());
// Save the default config file (packaged in the JAR)
this.saveDefaultConfig();
// Register bStats
int pluginId = 16940;
Metrics metrics = new Metrics(this, 16940);
}
public void onDisable() {
}
}
|