All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Better Whitelist

Better Whitelist

by JFronny • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Better-Whitelist provides a basic whitelist system for your server that you can adapt to your use case.

The mod is required both on the server and any clients connecting to the server.

The whitelist is configured using μScript, but you don't have to be good at programming to use this mod.

A config file with some additional details will be created when you first start your server with the mod.

A simple config for Better-Whitelist could look as follows (please note that you'd probably have to add exceptions for client-side mods with optional server-side components when using this):

// convert a mod to a simpler representation to save bandwidth
simplify = { mod -> { id = mod.id, version = mod.version } }

// all non-serverside mods present on the server
sharedMods = mods::values()
  ::filter({ v -> v.environment != 'server' & v.id != 'java' })
  ::map(simplify)

// ensure the client has the correct version of every non-serverside mod on the server
clientMissing = challenge({ arg ->
  arg::filter({ v -> !mods::values()::anyMatch({ m -> v.id == m.id & v.version == m.version }) })
}, sharedMods)
assert(clientMissing::isEmpty(), 'You lack required mods: ' || clientMissing)

// ensure the client has no additional mods that would be required on the server
clientAdditional = challenge({ arg, fn ->
  clientSideMods = mods::values()::filter({ v -> v.environment != 'client' & v.id != 'java' })
  clientSideMods::filter({ v -> !arg::anyMatch({ m -> v.id == m.id & v.version == m.version }) })::map(fn)
}, sharedMods, simplify)
assert(clientAdditional::isEmpty(), 'You have unsupported mods: ' || clientAdditional)

// filter resource packs for X-Ray packs
bannedWords = listOf('xray', 'x-ray', 'cheat')
assert(!challenge({ ->
  resourcePacks::map({ pack -> pack.name || ' ' || pack.displayName || ' ' || pack.description })
})::anyMatch({ v -> bannedWords::anyMatch({ word -> v::toLower()::contains(word) }) }), "Please don't cheat, " || user.name)

The following things are available to your scripts:

  • All methods from the μScript standard library (including date/time, meaning you can temporarily whitelist or blacklist users or create countdowns)
  • resourcePacks (client only): a list of resource packs, each of which has a name, displayName and description
  • println('message') (both): a function for debugging
  • mods (both): a list of loaded mods with the same fields as the result of mod()
  • mod('id') (both): information about a specific mod (or null): id, name, description, authors (list of strings), contributors (list of strings), version, environment (either client, server or *), license, contact (same as FMJ), depends (list of strings)
  • assert(bool) (server): assert that something is true and kick the player if it's not (optionally, add a message as the second parameter)
  • challenge({->closure}, additional arguments...) (server): send a closure to the client to be executed there. The arguments may contain other closures.
  • user (server): information about the user trying to log in, namely their id and name
    Suggestions and Support

How to Install Better Whitelist (Mod)

Better Whitelist by JFronny is verified for Fabric across Minecraft versions 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6 (latest release: 26.3.0, file size: 403 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Better Whitelist file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
2mo ago 1
26.2
Fabric
5mo ago 1
26.1.x
Fabric
8mo ago 1
1.21.11
Fabric
last yr. 1
1.21.10
Fabric
last yr. 1
1.21.9
Fabric
last yr. 1
1.21.8
Fabric
last yr. 1
1.21.7
Fabric
last yr. 1
1.21.6
Fabric
last yr. 1
1.21.5
Fabric
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20
Fabric
last yr. 1
1.19.4
Fabric
last yr. 1
[26.3.0] [26.3] 26.3.0 by JFronny on Sep 15, 2026
Download
Commits in Release 26.3.0:
  • chore: update to 26.3
[26.2.0] [26.2] 26.2.0 by JFronny on Jun 17, 2026
Download
Commits in Release 26.2.0:
  • chore: update to 26.2
[26.1.0] [26.1] 26.1.0 by JFronny on Mar 28, 2026
Download
Commits in Release 26.1.0:
  • chore: update to 26.1
[1.0.15] [1.21.11] 1.0.15 by JFronny on Dec 10, 2025
Download
Commits in Release 1.0.15:
  • chore: update to 1.21.11
[1.0.14] [1.21.10] 1.0.14 by JFronny on Oct 09, 2025
Download
Commits in Release 1.0.14:
  • chore: update to 1.21.10
[1.0.13] [1.21.9] 1.0.13 by JFronny on Oct 01, 2025
Download
Commits in Release 1.0.13:
  • chore: update to 1.21.9
[1.0.12] [1.21.8] 1.0.12 by JFronny on Jul 18, 2025
Download
Commits in Release 1.0.12:
  • chore: update to 1.21.8
[1.0.11] [1.21.7] 1.0.11 by JFronny on Jul 01, 2025
Download
Commits in Release 1.0.11:
  • chore: update to 1.21.7
[1.0.10] [1.21.6] 1.0.10 by JFronny on Jun 17, 2025
Download
Commits in Release 1.0.10:
  • chore: update to 1.21.6
[1.0.9] [1.21.5] 1.0.9 by JFronny on Mar 25, 2025
Download
Commits in Release 1.0.9:
  • chore: update to 1.21.5
[1.0.8] [1.21.4] 1.0.8 by JFronny on Dec 03, 2024
Download
Commits in Release 1.0.8:
  • chore: update to 1.21.4
[1.0.7] [1.21.3] 1.0.7 by JFronny on Oct 23, 2024
Download
Commits in Release 1.0.7:
  • chore: update to 1.21.3
[1.0.6] [1.21] 1.0.6 by JFronny on Jun 14, 2024
Download
Commits in Release 1.0.6:
  • chore: update to 1.21
[1.0.5] [1.20.5] 1.0.5 by JFronny on Apr 25, 2024
Download
Commits in Release 1.0.5:
  • chore: update to 1.20.5
[1.0.4] [1.20.4] 1.0.4 by JFronny on Dec 07, 2023
Download
Commits in Release 1.0.4:
  • chore: update to 1.20.4
Better Whitelist Icon
Download Better Whitelist
Select game version
Select platform