▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/SMP Utilities
SMP Utilities

SMP Utilities

This mod was designed and planned to improve the experience of creating SMPs servers in Minecraft. Its main function is to ban and control items, blocks, and mods, with the ability to unban those same items, blocks, or mods for specific players.

Оцените первым
401
2
Все версииSMP Utilities 0.1.7

SMP Utilities 0.1.7

Release10.05.2026

Список изменений

📋 Change Log - SMP Utilities

Bug Fix: Whitelist Precedence in Lock/Disable/Ban Systems

Problem

Players with individual item permissions (/idlock allow <player> item <id>) were still being blocked because the system checked global locks BEFORE checking player whitelist.

Fix

Reordered checks in checkItemStatusForPlayer() and checkBlockStatusForPlayer() methods:

Before:

if (lockedItems.contains(itemId)) return "LOCKED";  // ❌ Blocked whitelist
if (hasAllModsAllowed(playerUUID)) return "ALLOWED_FOR_PLAYER";

After:

// ✅ Player permissions checked FIRST
if (hasAllModsAllowed(playerUUID)) return "ALLOWED_FOR_PLAYER";
if (isWhitelisted(playerUUID, itemId)) return "ALLOWED_FOR_PLAYER";
// Then check global status
return checkItemStatus(itemId);

Files Changed

  • IdLockData.java
  • IdDisableData.java
  • IdBanData.java

Enhancement: WaystoneSuppression Refactor

Goal

Match the robust event structure of IdDisable while keeping original behavior (triggered by potion effect, no whitelist, TOML config).

What Changed

FeatureBeforeAfter
Armor slot checkingBasicFull + prevents equipping
Curios supportBasicFull + prevents equipping
Item usage blockingPartialComplete (right-click, attack, interact)
Block interactionBasicComplete (place, break, right-click)
Inventory itemsStay in inventoryStay in inventory (CANNOT use)
Pickup from groundAllowedAllowed (unchanged)

New Events Added

  • onRightClickItem - Prevents using items
  • onAttackEntity - Prevents attacking with suppressed items
  • onEntityInteract - Prevents entity interaction
  • onHarvestCheck / onBreakSpeed - Prevents mining with suppressed items

Config Fix (TOML format)

Fixed missing quotes:

# Before (broken)
WaystoneSuppression = ["waystones:*", "balm:*", endermanoverhaul:*]

# After (fixed)
WaystoneSuppression = ["waystones:*", "balm:*", "endermanoverhaul:*"]
BannedItems = ["...", "relics:chorus_inhibitor", "relics:enders_hand"]

Files Changed

  • WaystoneSuppressionHandler.java - Complete rewrite with IdDisable structure
  • WaystoneSuppressionData.java - Fixed TOML quotes in default config

Testing Commands

IdLock/IdDisable/IdBan

/idlock disable item-block minecraft:dirt_path
/idlock allow Dev item-block minecraft:dirt_path
# Dev should use item normally ✅

WaystoneSuppression

/effect give @p smp_utilities:waystone_suppression 6000 0
# Suppressed item: shows message, stays in inventory, cannot use
# Suppressed armor: drops, cannot equip

Date: 2026-05-10

Файлы

smp_utilities-0.1.7-forge-1.20.1.jar(2.46 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

0.1.7

Загрузчики

Forge

Версии игры

1.20.1

Загрузок

75

Дата публикации

10.05.2026

Загрузил

ID версии

Главная