Skip to content

Conversation

wi1helm
Copy link

@wi1helm wi1helm commented Jul 18, 2025

Rework:

Created a VanillaCommands class that includes vanilla permissions check and usage(used for help command).
Changed around in VanillaCommandFeature to make the logic more simple.
All previous commands have in someway been changed to extend VanillaCommand and additions like translation keys.

Additions:
/op (has wrong permission level right now due to no console.)
/list
/me
/msg
/help
/say

These commands have simple logic that dont need other implementations like entities (/summon), worldgen (/seed) etc.

wi1helm added 7 commits July 10, 2025 05:38
Started to rework and add vanilla commands:

Added permission checks and levels taken from mc wiki.

added some easy to have commands.
Make VanillaCommands a abstract class instead of interface.

Changed VanillaCommandsFeature to not be a enum and more dynamic
Updated Help command to be closer to vanilla.

Reworked VanillaCommandsFeature again and removed supplier. Easy to use.
All commands now use translation keys for messages.
public final int LEVEL_MODERATOR = 1;
public final int LEVEL_GAMEMASTER = 2;
public final int LEVEL_ADMIN = 3;
public final int LEVEL_OWNER = 4;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a static constant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants