Ja mam na takiej zasadzie zrobione
public class vip
implements CommandExecutor
{
natusiekCore plugin;
public vip(natusiekCore plugin)
{
this.plugin = plugin;
this.plugin.getCommand("vip").setExecutor(this);
}
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
{
if ((sender instanceof Player))
{
Player player = (Player)sender;
for (String s : this.plugin.getConfig().getStringList("vip"))
{
s = s.replace("&", "§");
s = s.replace("{NICK}", player.getName());
player.sendMessage(s);
}
}
else
{
sender.sendMessage("Nie mozesz tego uzyc w konsoli ");
}
return false;
}
}
PS. Tam jest {NICK} wiec mozesz dodać jako ze np. ,, Prefix: [ VIP ] {NICK} ''