-
|
Hi. I'm really bad at all things Java, so please don't get mad at me because these are really stupid questions. My questions are: How can one of my paper/folia servers send a player to another each other? Whenever the console/datapacks try to do this it returns: Also, how can I make it so people can use a custom CommandBridge command like /lobby1 (which is a link to /server lobby1) without having the velocity.command.server permission? I want to have the players be able to only access some servers without another server specifically sending them to it. Sorry about taking up your time. --WikusG |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
No problem, feel free to ask! but the main issue here is the execution context In your script (I assume) you are executing the command as the player (for example /server test). That only works if the command is actually executed by a player. If another plugin or a datapack executes the CommandBridge command, there is no player object, which is why you get that error. So you basically have only two options: For your second question: |
Beta Was this translation helpful? Give feedback.
No problem, feel free to ask! but the main issue here is the execution context
In your script (I assume) you are executing the command as the player (for example /server test). That only works if the command is actually executed by a player. If another plugin or a datapack executes the CommandBridge command, there is no player object, which is why you get that error.
So you basically have only two options:
1. Run it as the player
If you want it to execute as a player, your plugin or datapack has to explicitly execute it as that player. Otherwise CommandBridge can’t resolve a player context and will fail.
2. Run it as console
If you disable the check-if-executor-is-player: true check, you …