mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-27 17:45:28 +02:00
Second Smelt makes use of its own section in Bonus Drops in config.yml
Co-authored-by: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
@@ -199,7 +199,7 @@ public final class CommandRegistrationManager {
|
||||
}
|
||||
|
||||
private static void registerXprateCommand() {
|
||||
List<String> aliasList = new ArrayList<String>();
|
||||
List<String> aliasList = new ArrayList<>();
|
||||
aliasList.add("mcxprate");
|
||||
|
||||
PluginCommand command = mcMMO.p.getCommand("xprate");
|
||||
|
@@ -106,7 +106,7 @@ public final class CommandUtils {
|
||||
}
|
||||
|
||||
public static boolean hasPlayerDataKey(CommandSender sender) {
|
||||
if (sender == null || !(sender instanceof Player)) {
|
||||
if (!(sender instanceof Player)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ public final class CommandUtils {
|
||||
|
||||
PlayerProfile profile = UserManager.getPlayer(inspect).getProfile();
|
||||
|
||||
List<String> displayData = new ArrayList<String>();
|
||||
List<String> displayData = new ArrayList<>();
|
||||
displayData.add(header);
|
||||
|
||||
for (PrimarySkillType skill : skillGroup) {
|
||||
@@ -239,7 +239,7 @@ public final class CommandUtils {
|
||||
|
||||
public static List<String> getOnlinePlayerNames(CommandSender sender) {
|
||||
Player player = sender instanceof Player ? (Player) sender : null;
|
||||
List<String> onlinePlayerNames = new ArrayList<String>();
|
||||
List<String> onlinePlayerNames = new ArrayList<>();
|
||||
|
||||
for (Player onlinePlayer : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||
if (player != null && player.canSee(onlinePlayer)) {
|
||||
@@ -286,7 +286,7 @@ public final class CommandUtils {
|
||||
* @return List of all possible names
|
||||
*/
|
||||
private static List<String> matchPlayer(String partialName) {
|
||||
List<String> matchedPlayers = new ArrayList<String>();
|
||||
List<String> matchedPlayers = new ArrayList<>();
|
||||
|
||||
for (OfflinePlayer offlinePlayer : mcMMO.p.getServer().getOfflinePlayers()) {
|
||||
String playerName = offlinePlayer.getName();
|
||||
|
Reference in New Issue
Block a user