Skip to content

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

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