-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
BStats overhaul #6984
BStats overhaul #6984
Conversation
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.
looks good. as mentioned on Discord, we should add a way to obtain the default value of an option rather than hardcode it here
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.
great work!
@@ -79,21 +61,21 @@ public class SkriptConfig { | |||
} | |||
}); | |||
|
|||
static final Option<Boolean> checkForNewVersion = new Option<>("check for new version", false) | |||
public static final Option<Boolean> checkForNewVersion = new Option<>("check for new version", false) |
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.
Why don't you make SkriptMetrics.java within the ch.njol.skript package so you don't need to manipulate these fields to be public.
These nodes really don't need to be public, but also don't have any real harm being public other than Option#set
method.
These field names could also be uppercase now if they are to remain public.
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.
good point, @APickledWalrus thoughts about package location?
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.
I don't think it really matters whether these fields are public, but it also doesn't matter where this class is. If you'd prefer to keep their access the same, then there would be no issue to move this class.
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.
I think I'd prefer new stuff to stay in the skriptlang package if possible so I'll keep them public and just edit the formatting like you suggested, lime.
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.
well actually looking at it the whole file needs to be updated in terms of formatting, they're all camelCase and PubSF
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.
I don't think it really matters whether these fields are public, but it also doesn't matter where this class is. If you'd prefer to keep their access the same, then there would be no issue to move this class.
The file location does matter as it's keeping the file within the ch.njol.skript
package to allow the fields to keep their package access.
I think I'd prefer new stuff to stay in the skriptlang package if possible so I'll keep them public and just edit the formatting like you suggested, lime.
Yes, in the case you don't require a class existing from the old packages. This is a new class that requires access to the old class, and will be renamed in the future when the whole ch.njol.skript
package gets renamed.
Not a huge problem as other fields are public too.
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.
I think the best route here would be to fix up SkriptConfig in a separate PR (which I will do shortly) so that it doesn't rely on public static fields. This way the metrics class just has to call something like Skript.getConfig().getXYZValue()
and there's no package concerns. So for now I'm going to leave it as is, with the knowledge that it will be replaced soon.
Description
All the legacy charts will stick around but will be relegated to the bottom of the page after a few versions pass. The new charts will only show users on 2.9.2+, so the legacy charts are still interesting to view, but by the time 2.10.x is out they shouldn't be that useful for us.
Chart changes are live at https://bstats.org/plugin/bukkit/Skript/722, with my test server as the only server running the new charts.
Target Minecraft Versions: any
Requirements: none
Related Issues: none