Merge branch 'master' of github.com:walterhiggins/ScriptCraft
This commit is contained in:
commit
d16487bcc3
2 changed files with 3 additions and 3 deletions
|
@ -139,7 +139,7 @@ var _getTeam = function( player, pteams ) {
|
||||||
var createGame = function( duration, teams ) {
|
var createGame = function( duration, teams ) {
|
||||||
var players,
|
var players,
|
||||||
i,
|
i,
|
||||||
_snowBalls = new ItemStack( Material.SNOW_BALL, 64 );
|
_snowBalls = new bkItemStack( bkMaterial.SNOW_BALL, 64 );
|
||||||
|
|
||||||
var _gameState = {
|
var _gameState = {
|
||||||
teams: teams,
|
teams: teams,
|
||||||
|
@ -179,7 +179,7 @@ var createGame = function( duration, teams ) {
|
||||||
*/
|
*/
|
||||||
var _onSnowballHit = function( l, event ) {
|
var _onSnowballHit = function( l, event ) {
|
||||||
var snowball = event.damager;
|
var snowball = event.damager;
|
||||||
if ( !snowball || !( snowball instanceof Snowball ) ) {
|
if ( !snowball || !( snowball instanceof bkSnowball ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var throwersTeam = _getTeam( snowball.shooter, _gameState.teams );
|
var throwersTeam = _getTeam( snowball.shooter, _gameState.teams );
|
||||||
|
|
|
@ -37,5 +37,5 @@ command( 'spawn', function( parameters, sender ) {
|
||||||
}
|
}
|
||||||
var world = location.world;
|
var world = location.world;
|
||||||
var type = ('' + parameters[0]).toUpperCase();
|
var type = ('' + parameters[0]).toUpperCase();
|
||||||
world.spawnEntity( location, EntityType[type] );
|
world.spawnEntity( location, bkEntityType[type] );
|
||||||
}, entities );
|
}, entities );
|
||||||
|
|
Reference in a new issue