Staartvin / Autorank-2

Autorank is a Spigot/Bukkit plugin for automatically ranking players based on requirements
Other
56 stars 61 forks source link

BattleLevels requirements not recognized #616

Closed coletam closed 6 years ago

coletam commented 6 years ago

AutoRank doesn't seem to be recognizing BattleLevels and/or the requirements needed.

Using...

Example of the paths.yml setting:

RANK_NAME_2:
  prerequisites:
    in group: RANK_NAME_1
  requirements:
    time: 12h
    money: 12500
    battlelevels kills: 5
  results:
    command: pex promote &p normal
  options:
    display name: RANK_NAME_2
    auto choose: true

However, when using "battlelevels kills", the following is alerted in console:

09.04 15:31:17 [Server] INFO [Autorank] Found Statz plugin: Statz (by Staartvin) 09.04 15:31:17 [Server] INFO [Autorank] Hooked into Statz (by Staartvin) 09.04 15:31:17 [Server] INFO [Autorank] Loaded libraries and dependencies 09.04 15:31:17 [Server] WARN [Autorank] Autorank has some warnings for you: 09.04 15:31:17 [Server] WARN [Autorank] (Priority 10) 'You are using a 'battlelevels kills' requirement in path 'RANK_NAME_2', but that requirement doesn't exist!'

I've tried different variations of the requirement ID (battlelevel kills, battlelevels_kills, battle_levels kills, etc) but none seems to work.

Any help would be appreciated. Thank you!

Staartvin commented 6 years ago

Hmm, that's an odd bug. I'll check it out.

Staartvin commented 6 years ago

Upon further inspection, it seems you are using a version of Autorank that does not have 'battelevels' requirements yet, as can be seen from the error message: _You are using a 'battlelevels kills' requirement in path 'RANK_NAME2', but that requirement doesn't exist!

This version should support it.

coletam commented 6 years ago

Ah, I see. I wasn't aware that BattleLevels was added after the latest version on Spigot. I'll try the dev build, thanks!

Staartvin commented 6 years ago

Issue fixed.