is there a plugin that u can type /vote and it gives u a link to a forum topic with links to vote for the server? Thanks!
I would like something like this to. Like if you type /vote, it will show what you typed in into a customizable config just like /rules or /motd
Anyone care to compile this (as I don't tbrh )? Code:java package com.github.DarkSeraphim.ServerVote; import java.util.ArrayList; import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.plugin.java.JavaPlugin; public class ServerVote extends JavaPlugin{ @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(label.equals("vote")) { ArrayList<String> sites = (ArrayList<String>)getConfig().getStringList("votes"); String prefix = getConfig().getString("prefix", "Please vote for our server here: "); if(sites == null) { this.getLogger().warning("No websites found for voting!"); sender.sendMessage("No websites found. Please inform an administrator of this."); } else { for(String site : sites) { sender.sendMessage(new StringBuilder().append(prefix).append(site).toString()); } } } return true; }}
fireblast709 Does everyone get /vote by default or is there a permission? Btw thanks. And thanks MCE626 for requesting this
Ok thanks Someone compile this please D: EDIT by Moderator: merged posts, please use the edit button instead of double posting.