-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
Now 1.7-1.17 is fully supported!
Changed the Url sending to use Adventure.
Added some more stuff! Like the ability to use with 1.7-1.17 |
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
|
||
public @NonNull BukkitAudiences adventure() { | ||
if(this.adventure == null) { | ||
throw new IllegalStateException("Tried to access Adventure when the plugin was disabled!"); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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> | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary newline addition
Volume per region
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. |
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