This commit is contained in:
walterhiggins 2015-08-01 12:33:40 +01:00
parent 78ddb5feff
commit 62ff9034a6
4 changed files with 21 additions and 3 deletions

View File

@ -1 +1 @@
scriptcraft-version=3.1.8
scriptcraft-version=3.1.9

View File

@ -57,6 +57,13 @@
<target name="get-canary" depends="init" description="Downloads canarymod jar" unless="canary.present">
<mkdir dir="target/lib/"/>
<get src="http://scriptcraftjs.org/download/latest/CanaryMod-1.8.0-1.2.1-SNAPSHOT-shaded.jar"
maxtime="60"
dest="target/lib/canarymod.jar"
verbose="true"/>
<!--
wph 20150801 - CanaryMod is no longer being developed. Get the latest version from scriptcraftjs.org instead.
<get src="https://ci.visualillusionsent.net/job/CanaryMod/lastStableBuild/artifact/*zip*/archive.zip"
maxtime="60"
dest="target/canarymod.zip"
@ -65,6 +72,7 @@
dest="target/lib">
<mapper type="glob" from="*.jar" to="canarymod.jar"/>
</unzip>
-->
</target>
<target name="compile-plugins" depends="init,get-canary" description="compile canary plugin source">

View File

@ -1,5 +1,10 @@
RELEASE NOTES
=============
3.1.9 Release (2015 08 01)
--------------------------
Bug fix: minigames/scoreboard.js module's updatePlayerScore() function did not work with latest version of CanaryMod.
Using /scoreboard command instead. See https://github.com/walterhiggins/ScriptCraft/issues/261
3.1.8 Release (2015 06 07)
--------------------------
Bug fix: Fixes drone on Spigot 1.8.7 with JDK 7 see

View File

@ -49,8 +49,13 @@ function addPlayerToTeam( objectiveName, teamName, playerName ){
}
function updatePlayerScore( objectiveName, playerName, score ){
var sc = sb['getScore(String, ScoreObjective)']( playerName, sb.getScoreObjective( objectiveName) );
sc.score = score;
/*
wph 20150801 - this fails with CanaryMod 1.8.2 so use command instead - messy for ops but non-ops won't see messages
var sc = sb['getScore(String, ScoreObjective)']( playerName, sb.getScoreObjective( objectiveName) );
sc.score = score;
*/
execCommand('scoreboard players set ' + playerName + ' ' + objectiveName + score);
}
function removeTeamFromScoreboard( teamName ){