Skip to content

Conversation

@xXjojaXx
Copy link
Contributor

I just implemented what I requested in an Issue. Hope I did it right, because this is my first pull request. Feel free to change anything or tell me what should be different, if there is any kind of Enhancement or Problem to take care of. Basically this change allows MCC-Users to use SpectatorTeleport(Player from GetEntities()) and SpectatorTeleport(new Guid(String of Player or Entity-UUID)) int their Chatbots.

Copy link
Member

@ReinforceZwei ReinforceZwei left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! The work is perfect for a first time contribution. Just remove the extra spaces and you are good to go.

@xXjojaXx
Copy link
Contributor Author

Short question about making pull request cleaner: can I delete commits of an pr to undo their changes and not having to do another commit to undo? Also thanks for reacting so quick!

@xXjojaXx xXjojaXx changed the title Implementation of requested SpectatorTeleport Spectator-Teleport Implementation Nov 17, 2021
@ReinforceZwei
Copy link
Member

You may reset work directory or rebase branch and push again. But deleting commit is like rewriting the history. It is not recommended when you are working on the same branch with others.

It's okay to leave the commits here as is. Github can combine multiple commits into single commit before merging into master branch.

@ReinforceZwei ReinforceZwei merged commit 76a10c0 into MCCTeam:master Nov 17, 2021
@ORelio
Copy link
Member

ORelio commented Nov 17, 2021

Good job! Nice contribution 👍

Just in case, for the sake of compatibility between Minecraft versions did you check on wiki.vg what is the minimum version supporting the Spectator teleport and made sure the packet has not changed between version?

@xXjojaXx
Copy link
Contributor Author

The packet was introduced in 1.8 and has remained unchanged since then.

ORelio added a commit that referenced this pull request Nov 18, 2021
Feature not supported by Minecraft 1.7, only 1.8+
@ORelio
Copy link
Member

ORelio commented Nov 18, 2021

OK, added a version check 😉

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