diff --git a/src/main/js/plugins/minigames/SnowballFight.js b/src/main/js/plugins/minigames/SnowballFight.js index b72913f..9dccae6 100644 --- a/src/main/js/plugins/minigames/SnowballFight.js +++ b/src/main/js/plugins/minigames/SnowballFight.js @@ -139,7 +139,7 @@ var _getTeam = function( player, pteams ) { var createGame = function( duration, teams ) { var players, i, - _snowBalls = new ItemStack( Material.SNOW_BALL, 64 ); + _snowBalls = new bkItemStack( bkMaterial.SNOW_BALL, 64 ); var _gameState = { teams: teams, @@ -179,7 +179,7 @@ var createGame = function( duration, teams ) { */ var _onSnowballHit = function( l, event ) { var snowball = event.damager; - if ( !snowball || !( snowball instanceof Snowball ) ) { + if ( !snowball || !( snowball instanceof bkSnowball ) ) { return; } var throwersTeam = _getTeam( snowball.shooter, _gameState.teams ); diff --git a/src/main/js/plugins/spawn.js b/src/main/js/plugins/spawn.js index 30803c3..1cfd566 100644 --- a/src/main/js/plugins/spawn.js +++ b/src/main/js/plugins/spawn.js @@ -37,5 +37,5 @@ command( 'spawn', function( parameters, sender ) { } var world = location.world; var type = ('' + parameters[0]).toUpperCase(); - world.spawnEntity( location, EntityType[type] ); + world.spawnEntity( location, bkEntityType[type] ); }, entities );