Bans & Matchmaking

Ban players from ranked play or from all duels, and let players choose which opponents the ranked queue may match them with.

Duel Bans

A duel ban stops a player from playing without banning them from the server. Bans are saved in the database, so they stay after a restart, and they also work for offline players.

Commands

CommandWhat it does
/duelban <player> <length|perm> [ranked|all] [reason]Bans a player. Without a type, bans.default-type is used.
/duelban info <player>Shows the ban: type, time left, who banned and the reason. Alias: /duelban check.
/duelunban <player>Removes the ban.

Permission: shyamduels.admin.ban. Players with shyamduels.ban.bypass ignore bans.

Lengths: 30m, 12h, 7d, 2w, mixed like 1d12h, or perm for a ban that never ends.

Ban types

TypeBlocks
rankedRanked queues and tier tests.
allEverything in ranked, plus unranked queues, party queues, duel requests and FFA.

Settings

bans:
  enabled: true
  default-type: RANKED        # used when the command does not name a type
  remove-from-queue: true     # take a newly banned online player out of the queues the ban blocks
  nametag:
    enabled: true
    tag: "<#FF5555><b>BANNED</b></#FF5555> "       # in front of the nametag for ranked bans
    tag-all: "<#FF5555><b>BANNED</b></#FF5555> "   # for all-duel bans

Messages are in lang/messages.yml under bans:.

Placeholders

PlaceholderShows
%shyamduels_banned%true or false
%shyamduels_ban_type%Ban type, for example "ranked play"
%shyamduels_ban_time_left%Time left, or "permanent"
%shyamduels_ban_reason%The reason
%shyamduels_ban_tag%The nametag tag while banned, empty when not banned

Matchmaking Filters

Players can pick filters in /settings under Matchmaking. The ranked 1v1 queue then only matches them with opponents who pass their filters. A match only starts when both players pass each other's filters.

FilterWhat it checksNeeds
Minimum tierThe opponent holds at least this tier in the queued kit.tiers.yml enabled
Elo rangeThe Elo difference in the queued kit is not bigger than this.Nothing
Top rankingThe opponent is in the top N of the overall tier leaderboard.tiers.yml enabled

So nobody waits forever, filters stop applying once a player has waited relax-after-seconds.

matchmaking-filters:
  enabled: true
  unranked: false              # also use filters in unranked 1v1 queues
  relax-after-seconds: 60      # 0 = filters never relax
  min-tier:
    enabled: true
    options: [LT5, HT5, LT4, HT4, LT3, HT3, LT2, HT2, LT1, HT1]
  elo-range:
    enabled: true
    options: [100, 200, 300, 500]
  top-ranking:
    enabled: true
    options: [10, 50, 100, 500, 1000]

Servers that update from an older version get enabled: false. In the chest settings menu the button is settings.items.matchmaking-filters in menus/player-settings.yml. On updated servers it has no slot yet, so give it one to show it. The dialog settings menu shows it without changes.