[BUG] `server-enter-command` and `server-exit-command` not run when player gets teleported into the region
thomas-worm-fernuni opened this issue ยท 1 comments
Before open an issue, checkout this steps:
- If you are running the plugin at first time, try to run again to see if the problem persists.
- Check if your build is the latest on our Jenkins. Click Here: http://host.areaz12server.net.br:8081/job/RedProtect
- It's important to you include the plugin jar name, because version and build info.
Describe the bug
When an admin teleports the player into the region (e.g. /tppos PlayerB 5000 40 5000
) the player gets the welcome message of the region but the enter and exit commands aren't run.
To Reproduce
Steps to reproduce the behavior:
- Create a region.
- Set a
server-enter-command
flag (e.g. I use/ptime {player} night
[command from CMI plugin] for setting players personal time to night when he/she enters the zone.) - As an admin (having all permissions, even bypass) teleport a non-admin player to this region.
- The command isn't run, perhaps because RedProtect checks the permission of the porting player and not of the ported player.
Expected behavior
The enter command should be run!
Screenshots and LOGs
If applicable, add screenshots to help explain your problem. Upload your logs to https://gist.github.com/
Server and plugins versions (please complete the following information):
- Server: PaperMC 1.20.2
- Plugin Version: v8.1.1
- Java Version: Java 17
Additional context
Add any other context about the problem here.