Troubleshooting
What /pd doctor checks, fixes for common problems, known limits and how to opt out of bStats.
Start with /pd doctor
/pd doctorThe doctor prints a green OK: line with what works, then one line per problem. When everything is fine it says Nothing wrong found.
The OK: line shows: whether the lobby is set, how many arenas are ready, how many kits there are, the storage type, whether a Vault economy was found, and whether PlaceholderAPI is on.
What each problem means
| Doctor says | What to do |
|---|---|
No lobby set: players go back to where they were. | Stand in the lobby and run /pd setlobby. |
Arena <arena>: no area set | Set the corners with /pd arena pos1 <arena> and /pd arena pos2 <arena>. |
Arena <arena>: needs spawns for at least 2 teams | Add spawns with /pd arena spawn <arena> 1 and /pd arena spawn <arena> 2. |
Arena <arena>: team N spawn is in world '<world>', which isn't loaded | Load that world at startup, or clear the spawns and set them again. |
Arena <arena>: team N spawn is outside the arena area | Move the spawn inside the bounds, or make the bounds bigger. |
Arena <arena>: a spawn is outside its bounds, players there are out at once | Same as above. Remember that pos1 includes the block under your feet, while pos2 does not. |
Arena <arena>: the spectator spawn is more than 24 blocks from the arena | Set it closer with /pd arena spectator <arena>. Spectators can't move further than 24 blocks away. |
Arena <arena>: overlaps arena <other> (their resets would undo each other) | Shrink or move one of them so their boxes don't touch. |
Arena <arena>: lists kit '<kit>', which doesn't exist | Fix the list with /pd arena kits <arena> <kit...>, or any. |
Arena <arena>: is turned off | /pd arena enable <arena>. |
Kit <kit> has no ready arena, so nobody can play it | Make an arena ready that allows the kit, or remove the kit limits on an arena. |
Kit <kit> has no items | Put the items on and run /pd kit save <kit>. Not reported for sumo, boxing and own-inventory kits. |
Kit <kit> has both boxing and sumo on | Turn one off with /pd kit rule <kit> <rule> off. |
betting is on in config.yml but no Vault economy plugin is installed | Install Vault and an economy plugin, or set betting.enabled: false. |
N bet step(s) were cut off mid-payment. /pd escrow | See Fixing an interrupted bet. |
Common problems
Hits do nothing
- PvP is off in that world, or a protection plugin such as WorldGuard denies PvP where the arena is. Allow PvP there.
- The kit has
no_damage,boxing,sumo,spleefortnt_run. These rules make hits do no damage on purpose. - The two players are on the same team. Teammates can never hurt each other.
Players can't place or break blocks
- The kit needs
build(place, and break what was placed),break_any(break anything) orspleef(break snow, sand and gravel). - Blocks can't be placed higher than
build-heightblocks above the arena's lowest spawn. Raise it with/pd kit setting <kit> build-height <value>. - A
spleefkit only lets players place blocks ifbuildis also on.
Players are out as soon as the round starts
A spawn is below or outside the arena bounds. Run /pd doctor or /pd arena info <arena>.
"All arenas for this kit are in use"
Every arena that allows the kit is busy or not ready. The match starts as soon as one frees up. To run more matches at once, add arenas. If it never starts, check /pd arena list: an arena stuck as resetting or in_use with no match running usually means its world wasn't loaded. Load the world and restart.
A command is blocked in a match
Players can only use the commands in match.allowed-commands. Add the command there, without the /, and run /pd reload. Staff can be given pandaduels.bypass.commands.
Players see "Betting is off."
Betting needs betting.enabled: true and Vault with an economy plugin. The console start line says no Vault economy (betting off) when none was found.
PandaDuels turned itself off at start
The console shows Storage could not start, PandaDuels is turning itself off with the reason. With MySQL, check the host, port, database, user and password in config.yml, and that the database exists.
A config change did nothing
Some settings are only read at start: everything under storage, the Elo settings (start-elo, k-factor, placement-matches, placement-k-factor, floor), betting.tax and leaderboards.refresh-seconds. Restart the server after changing them.
Players are teleported to the lobby every time they join
That happens while lobby-items.enabled is true and a lobby is set. Turn lobby items off if you don't want it.
A player's kit layout went back to normal
The kit was changed with /pd kit save, so their saved layout no longer held the same items. They can arrange it again with /kiteditor <kit>.
A player's stats came back after /pd resetstats or a season reset
The player was online. Online players keep their stats in memory and their next match saves them back. Reset stats while the player is offline, and run season resets with nobody online or restart straight after.
Console warnings
| Warning | Meaning |
|---|---|
Kit <kit>: unknown rule '<rule>', skipped | kits.yml has a rule name PandaDuels doesn't know. |
Kit <kit>: unknown effect '<effect>', skipped | kits.yml has an effect name Minecraft doesn't know. |
Lobby item <id>: unknown material <material> | Fix the material in lobby-items. |
Lobby item action '<action>' is unknown | Fix the action in lobby-items. See Actions. |
Arena <arena>: its world <world> isn't loaded, so its blocks can't be put back yet | A crash left changes in that arena. Load the world and restart; the arena stays out of use until then. |
Journal <file> has no matching arena; left in place | A journal in plugins/PandaDuels/journals/ belongs to an arena that no longer exists. You can delete the file. |
N bet step(s) were interrupted mid-payment; check /pd escrow. | See Fixing an interrupted bet. |
Known limits
- Containers in arenas. Resets put blocks back, not container contents. A container broken or replaced during a match comes back empty, and items put into a container during a match stay there.
- Arenas must not overlap. Their resets would undo each other.
- The arena world must be loaded at start, so leftover changes from a crash can be put back.
- Kits and newer Minecraft versions. A kit saved on a newer Minecraft version can't be loaded by an older server.
- In-memory state is lost on restart: parties, a running tournament, the same-opponent daily count, and the inventory views in match summaries.
- Party queues are for parties of exactly two. Bigger parties use party duels, free for all or split.
- One tournament can run at a time.
bStats
PandaDuels sends anonymous usage numbers to bStats: the storage type, whether betting is on, how many kits and arenas there are, which kit rules are used, and how many matches of each type were played.
To opt out, set enabled: false in plugins/bStats/config.yml and restart. This turns bStats off for every plugin on the server that uses it.
Getting help
Report bugs and ask questions on GitHub issues. Include the output of /pd doctor, your PandaDuels and server versions, and any errors from the console.