Skip to content

Conversation

@jerzean
Copy link
Collaborator

@jerzean jerzean commented Apr 11, 2025

updated /ps admin to use textcomponents
(now has clickable commands)
https://i.gyazo.com/5c634bb06416755a101d7a9d43636988.mp4

updated /ps admin to use textcomponent
(now has clickable commands)
@espidev
Copy link
Owner

espidev commented Apr 12, 2025

Have you pushed the changes yet? I don't see them here.

@jerzean
Copy link
Collaborator Author

jerzean commented Apr 13, 2025

not yet, cleaning up somethings, like i forgot the footer on the ps admin menu

// Create the hover event from the info text, add click event after
BaseComponent[] hoverComponents = TextComponent.fromLegacyText(info);
mainText.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverComponents));
//toggle for running on mouse click, currently disabled
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
//toggle for running on mouse click, currently disabled
// Toggle for running on mouse click

It is implemented here, so it isn't disabled

<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.6-R0.1-SNAPSHOT</version>
<version>1.21.5-R0.1-SNAPSHOT</version>
Copy link
Owner

Choose a reason for hiding this comment

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

Do we need to bump the Spigot API version? This would make the plugin incompatible with servers still on 1.20.6-1.21.4

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

spigot uses "api-version:" in the plugin.yml not the version it was built with, protectionstones currently has "api-version: 1.17" which means it will load with spigot 1.17-1.21.5

Copy link
Owner

Choose a reason for hiding this comment

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

Shouldn't we be updating the plugin.yml then? I think we should do this version bump in a separate PR to better be able to test the side effects of bumping the version since we won't have their compatibility mode

"Use this command to recalculate block types for PS regions in a world.\n\n" + bc + " admin fixregions",
bc + " admin fixregions",
false);
//add footer since it was missing
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
//add footer since it was missing

}

// add line based on flag type
boolean isGroupValueAll = groupfValue.equalsIgnoreCase("all") || groupfValue.isEmpty();;
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
boolean isGroupValueAll = groupfValue.equalsIgnoreCase("all") || groupfValue.isEmpty();;
boolean isGroupValueAll = groupfValue.equalsIgnoreCase("all") || groupfValue.isEmpty();

@jerzean jerzean closed this Apr 13, 2025
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.

2 participants