Skip to content

whitecristafer/BuildingLicense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

BuildingLicense Enterprise (EN)

Version Status Rust Oxide Language

BuildingLicense is a Rust / Oxide-uMod plugin that controls building upgrades through permissions instead of raw resources.
This refactor focuses on cleaner architecture, safer update flow, bilingual in-game messaging, and a more production-ready maintenance model.

What changed in this build

  • Upgraded plugin version to 2.0.0

  • Reworked internal flow and removed dead / incomplete code paths

  • Fixed broken logging logic

  • Improved update handling and backup creation

  • Normalized config loading so old installs survive updates better

  • Made default player-facing messages bilingual: English first, Russian second

  • Kept comments in code in English, written from the developer perspective

  • Refactored command handling and upgrade checks

  • Improved status output for admins

  • Higher-tier permissions now satisfy lower-tier upgrade checks.

  • Optional exclusive grant mode uses AllowMultipleLicenses to keep only one tier at a time.

Core behavior

The plugin blocks upgrade attempts to:

  • Stone
  • Metal
  • Armored

unless the player has the matching permission.

Base grades such as Wood and Twig remain open.

Permissions

  • buildinglicense.admin
  • buildinglicense.stone
  • buildinglicense.metal
  • buildinglicense.armored

Commands

/bl

Admin command.

  • /bl help
  • /bl status
  • /bl reload
  • /bl update

/grantlicense <player> <stone|metal|armored>

Grants the selected license to a player.

Config

The config is generated automatically here:

oxide/config/BuildingLicense.json

Data and update backups are stored here:

oxide/data/BuildingLicense/
oxide/data/BuildingLicense/backups/

Implementation notes

The plugin now uses:

  • multiple upgrade hooks for compatibility
  • cached category resolution
  • tier-specific runtime rules
  • auto-update checks with version parsing
  • backup creation before update overwrite
  • safer config normalization

Example default message style

[BuildingLicense] Stone upgrade is locked. / Улучшение Stone заблокировано.

Installation

  1. Put BuildingLicense.cs into oxide/plugins.
  2. Reload the plugin:
    o.reload BuildingLicense
  3. Review the generated config.
  4. Assign permissions to admins and players.

License

This project is released under the Apache License 2.0. See LICENSE for the full text.

Created with ❤️ the INFUNV STUDIO

About

Расширенный плагин Rust (Oxide/uMod), который ограничивает возможности улучшения строительных блоков с помощью настраиваемых лицензионных разрешений, правил категорий, интерфейса чата и автоматических обновлений.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages