mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
* Starting work on Operator permission system This commit adds the ops.json configuration found in vanilla servers, and updates the basic configuration to handle the default permission level. Server now uses ops file and defaults players to op level 0 The /op command has been added but needs players to rejoin for now. * Clippy Fix + need to Rejoin after /op removed I found the source of the DeadLock. Updated set permission function. Fix cargo formatting issues and clippy issues. * Remove temp warn message * Move OperatorConfig to server As Snowiii pointed out, OperatorConfig is runtime data. Revert most changes in pumpkin-config. op_permission_level must say in the basic configuration for parity with Minecraft. * cargo fmt + cargo clippy * Sync permission change with client * Fixs issues @Commandcracker found in review - Move PermissionLvl to core and removed OpLevel - Move ops.json to /data/ops.json - Fix permissions issue with /op command - Shorten /op command description * refactor into `data` folder * create data dir when needed * add to readme * fix: conflicts --------- Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
20 lines
369 B
Rust
20 lines
369 B
Rust
pub mod cmd_bossbar;
|
|
pub mod cmd_clear;
|
|
pub mod cmd_fill;
|
|
pub mod cmd_gamemode;
|
|
pub mod cmd_give;
|
|
pub mod cmd_help;
|
|
pub mod cmd_kick;
|
|
pub mod cmd_kill;
|
|
pub mod cmd_list;
|
|
pub mod cmd_op;
|
|
pub mod cmd_pumpkin;
|
|
pub mod cmd_say;
|
|
pub mod cmd_seed;
|
|
pub mod cmd_setblock;
|
|
pub mod cmd_stop;
|
|
pub mod cmd_teleport;
|
|
pub mod cmd_time;
|
|
pub mod cmd_transfer;
|
|
pub mod cmd_worldborder;
|