Skip to content

Karlatemp/CommandInvokeHidden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

CommandInvokeHidden


这是一个API, 使用下面的代码来隐藏执行的命令.

This is API. Use the code in bottom to hidden invoked command.


public class PluginMain extends JavaPlugin{
    public void onEnable(){
        Bukkit.getPluginManager().regsterEvents(new Listener(){
            @EventHandler
            public void on(PlayerInvokeCommandLoggingEvent event) {
                if(event.getCommand().startsWith("/help"))
                    event.setCancelled(true);
            }
        }, this);
    }
}

About

Controls whether a command should be output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages