Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Observer Tools #260
This implementation of an observer tool set adds a new GUI menu for observers to interact with. While simple in functionality, this will most certainly prove useful for users who want more control over the features described below. I've designed this feature set with future improvements/additions in mind, so with minimal tweaking more tools/features can be added to the GUI if desired.
Adjust the flight speed between 4 set values. I performed a bit of testing between several values to see what made a difference to the user, and I believe the values chosen are good.
Also I used the names
Allows the player to toggle night vision on/off. Potions are removed when joining matches, so this will not interfere in anyway. This also does not persist between matches, so users will be able to decide on a per match basis if they want night vision on or not.
Simply toggles the Observer visibility setting.
This was one of the more tricky additions, as it toggles the observer between Creative and Spectator mode. Since the regular hotbar is not accessible while in Spectator, once the user clicks the tool, a message will be sent in the chat. Stating in order to access this menu they must use the
Also I made sure to include the
As stated earlier, I feel this menu has the potential to house more useful tools. Hopefully with community feedback, we can gather new ideas and implement them when needed.
There was one feature I feel could be implemented, though I chose not to for simplicity sake before receiving feedback. It would be allowing players the option to add one of the setting "tools" to their hotbar to easily activate the setting. For example, were the night vision tool added to the hotbar the user when clicking the item would be able to toggle night vision on/off without opening the inventory menu.
Just wanted to state, I did not add any config options to this. As I feel nothing here would disrupt gameplay in a way server owners would want to disable it. However if that is requested it can be added.
Signed-off-by: applenick email@example.com