Open NdaruAjaa opened 11 months ago
Could you please send me the contents of your config after # The /reward command
?
config-version: 5.0
data_storage: "JSON" # Providers: JSON, YAML
permission_groups:
reward_streaks: true # false to disable this feature
wait_time: default: 86400 vip: 86400 vip+: 86400
commands: default: 1:
command: command: "daily" description: "Take daily rewards" usage: "/daily" aliases: [""] ...
Are you using the latest version for Rewards? I'm unable to reproduce your issue.
Yes, I use the latest version of the rewards plugin
Which permission group is the player who caused the crash part of?
I don't know, most likely I made a mistake in the config
Ok, I was actually able to reproduce it now. Try adding a space before the vip+
in the commands
sections, so it looks like this:
commands:
default:
1:
- "givemoney {player} 5000"
- "key Daily 1 {player}"
max:
- "givemoney {player} 5000"
- "key Daily 1 {player}"
vip:
1:
- "givemoney {player} 10000"
- "key Daily 1 {player}"
- "key Money 1 {player}"
max:
- "givemoney {player} 10000"
- "key Daily 1 {player}"
- "key Money 1 {player}"
vip+:
1:
- "givemoney {player} 15000"
- "key Daily 1 {player}"
- "key Money 1 {player}"
max:
- "givemoney {player} 15000"
- "key Daily 1 {player}"
- "key Money 1 {player}"
THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: Rewards
Thread: Main Error: Wertzui123\Rewards\events\RewardClaimEvent::__construct(): Argument #2 ($commands) must be of type array, null given, called in phar:///home/container/plugins/Rewards.phar/src/Wertzui123/Rewards/commands/RewardCommand.php on line 49 File: plugins/Rewards.phar/src/Wertzui123/Rewards/events/RewardClaimEvent Line: 25 Type: TypeError Backtrace:
0 plugins/Rewards.phar/src/Wertzui123/Rewards/commands/RewardCommand(49): Wertzui123\Rewards\events\RewardClaimEvent->__construct(object pocketmine\player\Player#242312, null, int 1)
1 pmsrc/src/command/SimpleCommandMap(212): Wertzui123\Rewards\commands\RewardCommand->execute(object pocketmine\player\Player#242312, string[5] daily, array[0])
2 pmsrc/src/Server(1442): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#242312, string[5] daily)
3 plugins/Slapper/src/slapper/Main(228): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#242312, string[5] daily)
4 pmsrc/src/command/PluginCommand(46): slapper\Main->onCommand(object slapper\SlapperCommandSender#44106, object pocketmine\command\PluginCommand#61002, string[3] rca, array[1])
5 pmsrc/src/command/SimpleCommandMap(212): pocketmine\command\PluginCommand->execute(object slapper\SlapperCommandSender#44106, string[3] rca, array[2])
6 pmsrc/src/Server(1442): pocketmine\command\SimpleCommandMap->dispatch(object slapper\SlapperCommandSender#44106, string[20] rca "jvupiter" daily)
7 plugins/Slapper/src/slapper/Main(694): pocketmine\Server->dispatchCommand(object slapper\SlapperCommandSender#44106, string[20] rca "jvupiter" daily)
8 pmsrc/src/event/RegisteredListener(61): slapper\Main->onEntityDamage(object pocketmine\event\entity\EntityDamageByEntityEvent#90270)
9 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent#90270)