Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main extends JavaPlugin {
- public static ArrayList<String> comandos = new ArrayList<String>();
- public void onEnable() {
- comandos.add("say Marcuri");
- comandos.add("say Potaje");
- comandos.add("say AfricanoLeproso");
- comandos.add("say Pene");
- BukkitTask counter = new Hours(this).runTaskTimer(this, 50, 50);
- }
- public void onDisable() {
- }
- public static String getAtList() {
- Random r = new Random();
- int toGet = comandos.size() - 2;
- Integer rI = r.nextInt(toGet);
- String toReturn = comandos.get(rI);
- return toReturn;
- }
- public static void execute(String s) {
- Bukkit.getServer().dispatchCommand(s, Bukkit.getServer().getConsoleSender());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement