Skip to content

Adding some helpful changes#981

Open
depascaldc wants to merge 5 commits into
CloudburstMC:masterfrom
depascaldc2:master
Open

Adding some helpful changes#981
depascaldc wants to merge 5 commits into
CloudburstMC:masterfrom
depascaldc2:master

Conversation

@depascaldc
Copy link
Copy Markdown

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

this.craftingType = CRAFTING_SMALL;

// adding command execution like in Nukkit-DOC -> see above
if(message.startsWith("/")) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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