question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] Set result and success of command

See original GitHub issue

Vanilla commands outputs whether the command has successfully executed or not. It also keeps outputs its result.

Example: /tp @a[name=Notch] @s

This command will only be successfully run if there is a player named Notch in the world. Otherwise the success score will be 0.

2018-11-25_14 58 58

The success is always either 0 or 1. In the picture above it’s 0, as there is no player named Notch online.

Vanilla commands also output their result, which can be more than 0 or 1.

Example: 2018-11-25_15 01 30 The success of this command is 1. The result is 35, as there are 35 entities in the world.

Right now, every commandAPI command will always be successfully run, so the success of every command will always be 1. The result is 1 too.

It would be awesome if we could do this with commandAPI commands too 😄

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
JorelAlicommented, Nov 30, 2018

I’m hoping to resolve the permissions bug of minecraft.command.blah before the 1.7 release - I’ve finally found a potential fix for this pretty critical bug!

0reactions
Combustiblecommented, Nov 30, 2018

Awesome, will test this out! Getting to the point where a 1.7 release would be nice so I can include it with Maven rather than handcompiling my own 😃

Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Economy: Definition, How It Works, and ...
In a command economy, government officials set national economic priorities, including how and when to generate economic growth, how to allocate resources, and ......
Read more >
Leadership Principles - MCJROTC
- A leader must have a thorough knowledge of the tactical and technical capabilities of the command. Successful completion of a task depends...
Read more >
What Is a Command Economy? - The Balance
A command economy is a system in which a central government makes all economic decisions. Either the government or a collective owns the...
Read more >
LEADERSHIP PRINCIPLES 1. Know yourself and seek self ...
1. Know yourself and seek self-improvement. a. Evaluate yourself by using the leadership traits and determine your strengths and weaknesses.
Read more >
put-job-success-result — AWS CLI 1.27.22 Command ...
If provided with the value output , it validates the command inputs and returns a sample output JSON for that command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found