Assistance with annoying command message(1.13.2)

Status
This thread has been locked.

Randomizable

| Noob Developer | Experienced Manager
Supreme
Feedback score
15
Posts
401
Reactions
181
Resources
0
Anyone know how to remove it from saying this when you run a command? It seems to just log the command you are running into the chat and its really annoying. If you know an easy fix, as I have never seen this before, please let me know down below.

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

Marchi

Selfmade CEO - https://discord.gg/7ydeFnM
Premium
Feedback score
82
Posts
1,265
Reactions
471
Resources
0
Anyone know how to remove it from saying this when you run a command? It seems to just log the command you are running into the chat and its really annoying. If you know an easy fix, as I have never seen this before, please let me know down below.


Fix what? send us a screen shoot
 

onlyspitfire

Software Engineer and Sales Expert
Premium
Feedback score
4
Posts
164
Reactions
25
Resources
1
That has nothing todo with the version. It's a problem with the plugin, command isn't registered in the plugin.yml or command isn't imported properly.
 

Zyger

Middleman
Supreme
Feedback score
414
Posts
2,209
Reactions
2,615
Resources
0
Wouldn't matter what it returns, it's just not properly registered as said above.
Nah it does matter, you should check the spigot wiki.[DOUBLEPOST=1554279655][/DOUBLEPOST]Randomizable change the return from "false" to "true" at the end of the commands code.
 
Last edited:

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
Your command isn't properly registered, it doesn't matter the slightest whether you have false or true at the end of onCommand. The above suggestions that true or false plays any role are completely false.

Make sure you register your command in onEnable like this:
Code:
getCommand("yourcommand").setExecutor(new YourCommandClass());
 
Last edited:

Spoch

Developer & Game seller
Supreme
Feedback score
13
Posts
269
Reactions
112
Resources
0
Quote from JavaDocs:
Executes the given command, returning its success.
If false is returned, then the "usage" plugin.yml entry for this command (if defined) will be sent to the player.
 

Zyger

Middleman
Supreme
Feedback score
414
Posts
2,209
Reactions
2,615
Resources
0
Your command isn't properly registered, it doesn't matter the slightest whether you have false or true at the end of onCommand. The above suggestions that true or false plays any role are completely false.

Make sure you register your command in onEnable like this:
Code:
getCommand("yourcommand").setExecutor(new YourCommandClass());

6uOqdO4.png


oKRJALt.png


AWZJ3L9.gif
 
Last edited:

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
"if defined", it's not required in any way. Commands will still work whether you have it set to true or false, he just didn't register it.

Either way, the thread starter never mentioned that his plugin.yml contains "usage" so changing true from false wouldn't do anything either. Usage isn't the only way or requisite to display that debug message.
 
Last edited:

Spoch

Developer & Game seller
Supreme
Feedback score
13
Posts
269
Reactions
112
Resources
0
"if defined", it's not required in any way. Commands will still work whether you have it set to true or false, he just didn't register it.
They work, but it will send the usage defined in the plugin.yml.
 

Zyger

Middleman
Supreme
Feedback score
414
Posts
2,209
Reactions
2,615
Resources
0
"if defined", it's not required in any way. Commands will still work whether you have it set to true or false, he just didn't register it.

Either way, the thread starter never mentioned that his plugin.yml contains "usage" so changing true from false wouldn't do anything either. Usage isn't the only way or requisite to display that debug message.
If it's not registered, it'd say that it's an unknown command.

(thought you were talking about it being registered in the plugin.yml, dw)
 
Last edited:

Norska

Java Developer (https://norska.dev)
Supreme
Feedback score
68
Posts
901
Reactions
1,407
Resources
14
They work, but it will send the usage defined in the plugin.yml.
I'm not saying that it won't work, Zyger just assumed that it was usage while it also may not be that. Not registering your commands properly can also lead to that debug message showing.
 

Randomizable

| Noob Developer | Experienced Manager
Supreme
Feedback score
15
Posts
401
Reactions
181
Resources
0
"if defined", it's not required in any way. Commands will still work whether you have it set to true or false, he just didn't register it.

Either way, the thread starter never mentioned that his plugin.yml contains "usage" so changing true from false wouldn't do anything either. Usage isn't the only way or requisite to display that debug message.
It is registered properly
 
Status
This thread has been locked.
Top