Created
April 3, 2015 12:55
-
-
Save Cewlt/8b3d6bb15c53e1053d3d to your computer and use it in GitHub Desktop.
Execute a list of commands on start-up.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.colt.StartCommand; | |
import java.util.List; | |
import org.bukkit.Bukkit; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class StartCommand extends JavaPlugin{ | |
List<String> cmds = getConfig().getStringList("commands"); | |
public void onEnable() { | |
for(String cmd : cmds) { | |
Bukkit.getServer().dispatchCommand(getServer().getConsoleSender(), cmd); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment