Skip to content

MessageTweaker

Provide ChatEvent and SendCommandEvent

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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&lt;SendCommandEvent&gt;((event) => {
    var command = event.command;
    if ("gamemode" in command) {
        event.cancel();
    }
});