Why does it echo?

Status
This thread has been locked.

Cade

Currency Exchange
Supreme
Feedback score
34
Posts
686
Reactions
252
Resources
0
I made a chat clear plugin but when I type in the command it is entered in chat as well, why is this?

 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Demeng

Java Developer
Supreme
Feedback score
23
Posts
632
Reactions
526
Resources
3
You are using Bukkit's CommandExecutor and you are returning false.
Returning false in a onCommand will send the 'usage' you have entered in plugin.yml.
Returning true should fix the problem.

In other words, false means the command has "failed", and true means the command has completed successfully and the correct usage of the command should not be sent.
Or, just completely remove the 'usage' field in plugin.yml.
 

Cade

Currency Exchange
Supreme
Feedback score
34
Posts
686
Reactions
252
Resources
0
You are using Bukkit's CommandExecutor and you are returning false.
Returning false in a onCommand will send the 'usage' you have entered in plugin.yml.
Returning true should fix the problem.

In other words, false means the command has "failed", and true means the command has completed successfully and the correct usage of the command should not be sent.
Or, just completely remove the 'usage' field in plugin.yml.
Ok, I will try this.
 
Status
This thread has been locked.
Top