Unable to use DriveBackupV2 via RCON
dcronqvist opened this issue ยท 0 comments
Explanation of issue
As of right now, the plugin can't be used over RCON.
Cause of issue
This is because of the following if-statement where it is not checked if the sender is RemoteConsoleCommandSender
.
Proposed solution
Make the following changes to the if-statement, while making sure to import the class as well.
import org.bukkit.command.RemoteConsoleCommandSender;
...
...
...
if (!(sender instanceof Player || sender instanceof ConsoleCommandSender || sender instanceof RemoteConsoleCommandSender)) {
MessageUtil.sendMessage(sender, "DriveBackupV2 only supports commands sent in-game and via the console");
return true;
}