Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.swencake.plugintest;
- import org.bukkit.command.CommandExecutor;
- import org.bukkit.plugin.java.JavaPlugin;
- import com.swencake.plugintest.VexpCmd;
- public class FirstJavaPlugin extends JavaPlugin
- {
- @Override
- public void onEnable()
- {
- saveDefaultConfig();
- saveConfig();
- if(getConfig().getBoolean("viewexp.use"))
- {
- boolean vexpuse = getConfig().getBoolean("viewexp.use");
- String vexpmsg = getConfig().getString("viewexp.message");
- }
- CommandExecutor exempleExecutor = new VexpCmd();
- getCommand("viewexp").setExecutor(exempleExecutor);
- getLogger().info("Enabled !");
- }
- @Override
- public void onDisable()
- {
- getLogger().info("Disabled !");
- }
- }
Add Comment
Please, Sign In to add comment