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"> <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" <get src="https://ci.visualillusionsent.net/job/CanaryMod/lastStableBuild/artifact/*zip*/archive.zip"
maxtime="60" maxtime="60"
dest="target/canarymod.zip" dest="target/canarymod.zip"
@ -65,6 +72,7 @@
dest="target/lib"> dest="target/lib">
<mapper type="glob" from="*.jar" to="canarymod.jar"/> <mapper type="glob" from="*.jar" to="canarymod.jar"/>
</unzip> </unzip>
-->
</target> </target>
<target name="compile-plugins" depends="init,get-canary" description="compile canary plugin source"> <target name="compile-plugins" depends="init,get-canary" description="compile canary plugin source">

View file

@ -1,5 +1,10 @@
RELEASE NOTES 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) 3.1.8 Release (2015 06 07)
-------------------------- --------------------------
Bug fix: Fixes drone on Spigot 1.8.7 with JDK 7 see 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 ){ 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 ){ function removeTeamFromScoreboard( teamName ){