Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding some helpful changes #981

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

depascaldc
Copy link

Adding * // negative permission for * users to remove solo perms from *
Adding getNearbyEntities // getNearbyPlayers methods to player object
Adding Command-executor to player.chat() method ( if message starts with a / ) like in DOCs described

@@ -3308,6 +3308,12 @@ public boolean chat(String message) {
this.resetCraftingGridType();
this.craftingType = CRAFTING_SMALL;

// adding command execution like in Nukkit-DOC -> see above
if(message.startsWith("/")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just think player.chat("/say hi"); is better and faster written then player.getServer().dispatchCommand(player, "say hi"); and its written in the javadoc if a message starts with / in player.chat method it would be dispatched as command... :)

Copy link
Member

@SupremeMortal SupremeMortal Nov 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doc comment looks like a mistake when commands were given their own packet in 1.2

KCodeYT pushed a commit to KCodeYT/Nukkit that referenced this pull request May 29, 2021
KCodeYT pushed a commit to KCodeYT/Nukkit that referenced this pull request May 29, 2021
…ages

Fixes CloudburstMC#981 magma, lava, and starvation death messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants