Commits
md_5 authored e5f8a7672ea
1 + | --- a/net/minecraft/server/commands/CommandTrigger.java |
2 + | +++ b/net/minecraft/server/commands/CommandTrigger.java |
3 + | |
4 + | if (scoreboardobjective.getCriteria() != IScoreboardCriteria.TRIGGER) { |
5 + | throw CommandTrigger.ERROR_INVALID_OBJECTIVE.create(); |
6 + | } else { |
7 + | - Scoreboard scoreboard = entityplayer.getScoreboard(); |
8 + | + Scoreboard scoreboard = entityplayer.getServer().getScoreboard(); // CraftBukkit - SPIGOT-6917: use main scoreboard |
9 + | String s = entityplayer.getScoreboardName(); |
10 + | |
11 + | if (!scoreboard.hasPlayerScore(s, scoreboardobjective)) { |