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

Fixes @a[r=X] & Allows the plugin to work with 1.7-1.17 #55

Closed
wants to merge 8 commits into from

Conversation

GrangerTheDog
Copy link

Fixes the error that happens when the Location and Player are not in the same world in the isInRange function!

Reported by 4P5#1749 in the Discord channel!
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between world and world_nether

Fixes the error that happens when the Location and Player are not in the same world in the isInRange function!

Reported by 4P5#1749 in the Discord channel!
Caused by: java.lang.IllegalArgumentException: Cannot measure distance between world and world_nether
Now 1.7-1.17 is fully supported!
Changed the Url sending to use Adventure.
@GrangerTheDog GrangerTheDog changed the title Fixes @a[r=X] Fixes @a[r=X] & Allows the plugin to work with 1.7-1.17 Oct 8, 2021
@GrangerTheDog
Copy link
Author

Added some more stuff! Like the ability to use with 1.7-1.17

@GrangerTheDog GrangerTheDog mentioned this pull request Oct 8, 2021
Saving and loading of the RegionExtended has been added
…er_region

# Conflicts:
#	plugin/src/main/java/net/mcjukebox/plugin/bukkit/managers/RegionManager.java
#	plugin/src/main/java/net/mcjukebox/plugin/bukkit/managers/objects/RegionExtended.java
plugin/pom.xml Show resolved Hide resolved

public @NonNull BukkitAudiences adventure() {
if(this.adventure == null) {
throw new IllegalStateException("Tried to access Adventure when the plugin was disabled!");

Choose a reason for hiding this comment

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

nitpick, but the if statement style should match the rest of the project (space after if)

TextComponent message = Component.text()
.append(LegacyComponentSerializer.legacy('&').deserialize(langManager.get("user.openClient")))
.clickEvent(ClickEvent.openUrl(URL))
.hoverEvent(HoverEvent.showText(LegacyComponentSerializer.legacy('&').deserialize(langManager.get("user.openClient")))).build();

Choose a reason for hiding this comment

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

.legacy('&') can be replaced with .legacyAmpersand()

@@ -33,4 +33,5 @@
</dependency>
</dependencies>


Choose a reason for hiding this comment

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

unnecessary newline addition

oliverdunk added a commit that referenced this pull request Oct 6, 2024
@oliverdunk
Copy link
Owner

Sorry for taking far too long with this one - I've extracted the bug fix into b528fe3. I'm going to close this since I think the rest of the changes are related to the volume work you've done which isn't currently supported by the public client.

@oliverdunk oliverdunk closed this Oct 6, 2024
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