mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
12 lines
624 B
Diff
12 lines
624 B
Diff
|
--- a/net/minecraft/server/commands/CommandTrigger.java
|
||
|
+++ b/net/minecraft/server/commands/CommandTrigger.java
|
||
|
@@ -90,7 +90,7 @@
|
||
|
if (scoreboardobjective.getCriteria() != IScoreboardCriteria.TRIGGER) {
|
||
|
throw CommandTrigger.ERROR_INVALID_OBJECTIVE.create();
|
||
|
} else {
|
||
|
- Scoreboard scoreboard = entityplayer.getScoreboard();
|
||
|
+ Scoreboard scoreboard = entityplayer.getServer().getScoreboard(); // CraftBukkit - SPIGOT-6917: use main scoreboard
|
||
|
String s = entityplayer.getScoreboardName();
|
||
|
|
||
|
if (!scoreboard.hasPlayerScore(s, scoreboardobjective)) {
|