From 878264fac685ea9fdd3c802292d38a6af3d95bc2 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Wed, 4 Sep 2019 14:54:04 -0700 Subject: [PATCH] sidebar set_line: fix per_player compat --- .../denizen/scripts/commands/player/SidebarCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/SidebarCommand.java b/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/SidebarCommand.java index 3a8090f23e..6e6cafae50 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/SidebarCommand.java +++ b/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/SidebarCommand.java @@ -246,7 +246,7 @@ public void execute(ScriptEntry scriptEntry) { } if (scriptEntry.dbCallShouldDebug()) { - Debug.report(scriptEntry, getName(), action.debug() + debug + ArgumentHelper.debugObj("players", players.debug())); + Debug.report(scriptEntry, getName(), action.debug() + debug + ArgumentHelper.debugObj("players", players.debuggable())); } switch (Action.valueOf(action.asString())) { @@ -353,11 +353,11 @@ public void execute(ScriptEntry scriptEntry) { Debug.echoError("Invalid player!"); continue; } - if (scores == null || scores.size() == 0) { + if ((scores == null || scores.size() == 0) && perScores == null) { Debug.echoError("Missing or invalid 'scores' parameter."); return; } - if (value == null || value.size() != scores.size()) { + if ((value == null || value.size() != scores.size()) && perValue == null) { Debug.echoError("Missing or invalid 'values' parameter."); return; }