9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-01 21:36:34 +00:00

Fixed papi being aggressive

This commit is contained in:
Auxilor
2021-08-25 18:42:34 +01:00
parent 32d889d954
commit b30efd373e
2 changed files with 4 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ import com.willfp.eco.core.command.impl.Subcommand
import com.willfp.eco.util.StringUtils
import com.willfp.ecoskills.data.LeaderboardHandler
import com.willfp.ecoskills.getTotalSkillLevel
import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
@@ -70,9 +69,9 @@ class CommandTop(plugin: EcoPlugin) :
name = player.displayName
}
Bukkit.getLogger().info("${player.uniqueId} HAS NAME $name")
line = line.replace("%playername%", name)
line = line.replace("%player%", name)
line = StringUtils.format(line)
lines.add(line)
@@ -86,7 +85,7 @@ class CommandTop(plugin: EcoPlugin) :
}
for (message in messages) {
sender.sendMessage(StringUtils.format(message))
sender.sendMessage(message)
}
}
}

View File

@@ -16,7 +16,7 @@ messages:
line-wrap-color: "&8"
top-line-format: "%rank%. %player% - %level%"
top-line-format: "%rank%. %playername% - %level%"
top:
- "---- Skills Leaderboard ----"
- "%lines%"