Solved I need help to create variable {player}

Discussion in 'Spigot Plugin Development' started by ZMarcGamerPvP, Aug 16, 2018.

Thread Status:
Not open for further replies.
  1. Hello, i need help to create variable {player}.

    This is my String:

    Code (Java):
    c.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("messages.console-message")));
     
  2. Code (Java):
    c.sendMessage(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("messages.console-message").replace("{player}", "the replace")));
     
    • Like Like x 1
  3. Thanks you very much!!
     
    • Like Like x 1
Thread Status:
Not open for further replies.