2022-02-01 22:59:18 +01:00
|
|
|
--- a/net/minecraft/server/commands/CommandTrigger.java
|
|
|
|
+++ b/net/minecraft/server/commands/CommandTrigger.java
|
2023-06-07 17:30:00 +02:00
|
|
|
@@ -96,7 +96,7 @@
|
2022-02-01 22:59:18 +01:00
|
|
|
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)) {
|