Skip to content

Instantly share code, notes, and snippets.

@niwaniwa
Created June 28, 2015 08:51
Show Gist options
  • Save niwaniwa/1ec822f0dc11da9edb99 to your computer and use it in GitHub Desktop.
Save niwaniwa/1ec822f0dc11da9edb99 to your computer and use it in GitHub Desktop.
match.on('objective', function(event){
var team = event.getObjective().getOwner();
var players = match.getPlayers();
for (var i = 0; i < players.length; i++) {
players[i].sendMessage('`a'+team.getName()+'が相手のモニュメントを削った');
players[i].playSound(ANVIL_BREAK,1,1);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment