promotional bannermobile promotional banner

MessageTweaker

Provide ChatEvent and SendCommandEvent

Chat event import club.Gumeng.Messagetweaker.Event.ChatEvent;

ChatEvent gets the player message .message or getMessage()

Command event import club.Gumeng.Messagetweaker.Event.SendCommandEvent

SendCommandEvent gets the player command .command or getCommand()

Use example:

import crafttweaker.api.events.CTEventManager; 
import club.gumeng.messagetweaker.event.SendCommandEvent;
CTEventManager.register<SendCommandEvent>((event) => {
    var command = event.command;
    if ("gamemode" in command) {
        event.cancel();
    }
});

The MessageTweaker Team

profile avatar
Owner
  • 2
    Projects
  • 8.0K
    Downloads

More from gu_meng

  • Explore Everything project image

    Explore Everything

    • 8.0K
    • Modpacks

    Use create in skyblock to survive, and of course Mekanism and so on

    • 8.0K
    • November 18, 2024
    • Modpacks
    • +3
  • Explore Everything project image

    Explore Everything

    • 8.0K
    • Modpacks

    Use create in skyblock to survive, and of course Mekanism and so on

    • 8.0K
    • November 18, 2024
    • Modpacks
    • +3