mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
parent
ed588476e0
commit
c155c65a8f
@ -365,12 +365,8 @@ public class Config {
|
|||||||
* @throws NoSuchFieldException
|
* @throws NoSuchFieldException
|
||||||
* @throws IllegalAccessException
|
* @throws IllegalAccessException
|
||||||
*/
|
*/
|
||||||
private static void setAccessible(Field field)
|
private static void setAccessible(Field field) {
|
||||||
throws NoSuchFieldException, IllegalAccessException {
|
|
||||||
field.setAccessible(true);
|
field.setAccessible(true);
|
||||||
Field modifiersField = Field.class.getDeclaredField("modifiers");
|
|
||||||
modifiersField.setAccessible(true);
|
|
||||||
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,10 +16,10 @@ public class Settings extends Config {
|
|||||||
|
|
||||||
@Comment("These first 7 aren't configurable") // This is a comment
|
@Comment("These first 7 aren't configurable") // This is a comment
|
||||||
@Final // Indicates that this value isn't configurable
|
@Final // Indicates that this value isn't configurable
|
||||||
public static final String ISSUES = "https://github.com/IntellectualSites/PlotSquared/issues";
|
public static String ISSUES = "https://github.com/IntellectualSites/PlotSquared/issues";
|
||||||
@Final public static final String SUGGESTION =
|
@Final public static String SUGGESTION =
|
||||||
"https://github.com/IntellectualSites/PlotSquaredSuggestions";
|
"https://github.com/IntellectualSites/PlotSquaredSuggestions";
|
||||||
@Final public static final String WIKI =
|
@Final public static String WIKI =
|
||||||
"https://github.com/IntellectualSites/PlotSquared/wiki";
|
"https://github.com/IntellectualSites/PlotSquared/wiki";
|
||||||
@Final public static String DATE; // These values are set from P2 before loading
|
@Final public static String DATE; // These values are set from P2 before loading
|
||||||
@Final public static String BUILD; // These values are set from P2 before loading
|
@Final public static String BUILD; // These values are set from P2 before loading
|
||||||
|
Loading…
Reference in New Issue
Block a user