File tree Expand file tree Collapse file tree
src/main/java/de/theshadowsdust/ultimatespawn Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,16 @@ private record BlockSenderMapper(BlockCommandSender blockCommandSender) implemen
5252 public @ Nullable Entity getExecutor () {
5353 return null ;
5454 }
55+
56+ @ Override
57+ public CommandSourceStack withLocation (Location location ) {
58+ return this ;
59+ }
60+
61+ @ Override
62+ public CommandSourceStack withExecutor (Entity executor ) {
63+ return null ;
64+ }
5565 }
5666
5767 private record ConsoleSenderMapper () implements CommandSourceStack {
@@ -70,6 +80,16 @@ private record ConsoleSenderMapper() implements CommandSourceStack {
7080 public @ Nullable Entity getExecutor () {
7181 return null ;
7282 }
83+
84+ @ Override
85+ public CommandSourceStack withLocation (Location location ) {
86+ return this ;
87+ }
88+
89+ @ Override
90+ public CommandSourceStack withExecutor (Entity executor ) {
91+ return null ;
92+ }
7393 }
7494
7595 private record PlayerSenderMapper (Player player ) implements CommandSourceStack {
@@ -87,6 +107,16 @@ private record PlayerSenderMapper(Player player) implements CommandSourceStack {
87107 public @ Nullable Entity getExecutor () {
88108 return this .player ;
89109 }
110+
111+ @ Override
112+ public CommandSourceStack withLocation (Location location ) {
113+ return this ;
114+ }
115+
116+ @ Override
117+ public CommandSourceStack withExecutor (Entity executor ) {
118+ return this ;
119+ }
90120 }
91121}
92122
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public MinecraftHelp<CommandSender> buildHelpSystem(PaperCommandManager<CommandS
5050 return MinecraftHelp .<CommandSender >builder ()
5151 .commandManager (paperCommandManager )
5252 .audienceProvider (this .bukkitAudiences ::sender )
53- .commandPrefix ("/essentials " )
53+ .commandPrefix ("/ultimatespawn " )
5454 .colors (MinecraftHelp .helpColors (
5555 NamedTextColor .GOLD ,
5656 NamedTextColor .GRAY ,
You can’t perform that action at this time.
0 commit comments