Plugin Help Please help me!

Discussion in 'Plugin Help/Development/Requests' started by MarckF, Jun 26, 2015.

Thread Status:
Not open for further replies.
  1. Offline


  2. Offline


    Its straightforward - you cant replace a string with an int, as the message says.
    Turn that int argument into a string to use as a string argument instead
  3. Offline


    Change it to this:

    .replaceAll("&", "�")
    .replaceAll("%player%", e.getEntity().getDisplayName())
    .replaceAll("%killer%", e.getEntity().getKiller().getDisplayName())
    .replaceAll("%playerkills%", "" + this.pdata.getInt(e.getEntity().getUniqueId().toString())) //here i got the error. replaceAll in the type sring is not applicable for arguments (string, int)
    .replaceAll("%killerkills%", "" + this.pdata.getInt(e.getEntity().getKiller().getUniqueId().toString()))
    .replaceAll("%weapon%", e.getEntity().getKiller().getItemInHand().getItemMeta().getDisplayName()));
Thread Status:
Not open for further replies.

Share This Page