cleanup
This commit is contained in:
parent
30d109b01b
commit
0cda9a7698
@ -316,7 +316,6 @@ public class AuthMe extends JavaPlugin {
|
|||||||
showSettingsWarnings();
|
showSettingsWarnings();
|
||||||
|
|
||||||
// Sponsor messages
|
// Sponsor messages
|
||||||
ConsoleLogger.info("AuthMe hooks perfectly with the VeryGames server hosting!");
|
|
||||||
ConsoleLogger.info("Development builds are available on our jenkins, thanks to f14stelt.");
|
ConsoleLogger.info("Development builds are available on our jenkins, thanks to f14stelt.");
|
||||||
ConsoleLogger.info("Do you want a good game server? Look at our sponsor GameHosting.it leader in Italy as Game Server Provider!");
|
ConsoleLogger.info("Do you want a good game server? Look at our sponsor GameHosting.it leader in Italy as Game Server Provider!");
|
||||||
|
|
||||||
|
|||||||
@ -25,9 +25,5 @@ public class GetIpCommand implements ExecutableCommand {
|
|||||||
sender.sendMessage(player.getName() + "'s IP is: " + player.getAddress().getAddress().getHostAddress()
|
sender.sendMessage(player.getName() + "'s IP is: " + player.getAddress().getAddress().getHostAddress()
|
||||||
+ ":" + player.getAddress().getPort());
|
+ ":" + player.getAddress().getPort());
|
||||||
|
|
||||||
if (commandService.getProperty(HooksSettings.ENABLE_VERYGAMES_IP_CHECK)) {
|
|
||||||
sender.sendMessage(player.getName() + "'s real IP is: "
|
|
||||||
+ Utils.getPlayerIp(player));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ public final class Settings {
|
|||||||
banUnsafeIp, sessionExpireOnIpChange, useEssentialsMotd,
|
banUnsafeIp, sessionExpireOnIpChange, useEssentialsMotd,
|
||||||
enableProtection, recallEmail, useWelcomeMessage,
|
enableProtection, recallEmail, useWelcomeMessage,
|
||||||
broadcastWelcomeMessage, forceRegKick, forceRegLogin,
|
broadcastWelcomeMessage, forceRegKick, forceRegLogin,
|
||||||
checkVeryGames, removeJoinMessage, removeLeaveMessage, delayJoinMessage,
|
removeJoinMessage, removeLeaveMessage, delayJoinMessage,
|
||||||
noTeleport, hideTablistBeforeLogin, denyTabcompleteBeforeLogin,
|
noTeleport, hideTablistBeforeLogin, denyTabcompleteBeforeLogin,
|
||||||
kickPlayersBeforeStopping, allowAllCommandsIfRegIsOptional,
|
kickPlayersBeforeStopping, allowAllCommandsIfRegIsOptional,
|
||||||
customAttributes, isRemoveSpeedEnabled, preventOtherCase, keepCollisionsDisabled;
|
customAttributes, isRemoveSpeedEnabled, preventOtherCase, keepCollisionsDisabled;
|
||||||
@ -167,7 +167,6 @@ public final class Settings {
|
|||||||
spawnPriority = load(RestrictionSettings.SPAWN_PRIORITY);
|
spawnPriority = load(RestrictionSettings.SPAWN_PRIORITY);
|
||||||
getMaxLoginPerIp = load(RestrictionSettings.MAX_LOGIN_PER_IP);
|
getMaxLoginPerIp = load(RestrictionSettings.MAX_LOGIN_PER_IP);
|
||||||
getMaxJoinPerIp = load(RestrictionSettings.MAX_JOIN_PER_IP);
|
getMaxJoinPerIp = load(RestrictionSettings.MAX_JOIN_PER_IP);
|
||||||
checkVeryGames = load(HooksSettings.ENABLE_VERYGAMES_IP_CHECK);
|
|
||||||
removeJoinMessage = load(RegistrationSettings.REMOVE_JOIN_MESSAGE);
|
removeJoinMessage = load(RegistrationSettings.REMOVE_JOIN_MESSAGE);
|
||||||
removeLeaveMessage = load(RegistrationSettings.REMOVE_LEAVE_MESSAGE);
|
removeLeaveMessage = load(RegistrationSettings.REMOVE_LEAVE_MESSAGE);
|
||||||
delayJoinMessage = load(RegistrationSettings.DELAY_JOIN_MESSAGE);
|
delayJoinMessage = load(RegistrationSettings.DELAY_JOIN_MESSAGE);
|
||||||
|
|||||||
@ -59,7 +59,7 @@ public class SettingsMigrationService {
|
|||||||
private static boolean hasDeprecatedProperties(FileConfiguration configuration) {
|
private static boolean hasDeprecatedProperties(FileConfiguration configuration) {
|
||||||
String[] deprecatedProperties = {
|
String[] deprecatedProperties = {
|
||||||
"Converter.Rakamak.newPasswordHash", "Hooks.chestshop", "Hooks.legacyChestshop", "Hooks.notifications",
|
"Converter.Rakamak.newPasswordHash", "Hooks.chestshop", "Hooks.legacyChestshop", "Hooks.notifications",
|
||||||
"Passpartu", "Performances", "settings.restrictions.enablePasswordVerifier", "Xenoforo.predefinedSalt"};
|
"Passpartu", "Performances", "settings.restrictions.enablePasswordVerifier", "Xenoforo.predefinedSalt", "VeryGames"};
|
||||||
for (String deprecatedPath : deprecatedProperties) {
|
for (String deprecatedPath : deprecatedProperties) {
|
||||||
if (configuration.contains(deprecatedPath)) {
|
if (configuration.contains(deprecatedPath)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -35,11 +35,6 @@ public class HooksSettings implements SettingsClass {
|
|||||||
public static final Property<Boolean> CACHE_CUSTOM_ATTRIBUTES =
|
public static final Property<Boolean> CACHE_CUSTOM_ATTRIBUTES =
|
||||||
newProperty("Hooks.customAttributes", false);
|
newProperty("Hooks.customAttributes", false);
|
||||||
|
|
||||||
// TODO REMOVE ME
|
|
||||||
@Comment("These features are only available on VeryGames Server Provider")
|
|
||||||
public static final Property<Boolean> ENABLE_VERYGAMES_IP_CHECK =
|
|
||||||
newProperty("VeryGames.enableIpCheck", false);
|
|
||||||
|
|
||||||
@Comment({
|
@Comment({
|
||||||
"-1 means disabled. If you want that only activated players",
|
"-1 means disabled. If you want that only activated players",
|
||||||
"can log into your server, you can set here the group number",
|
"can log into your server, you can set here the group number",
|
||||||
|
|||||||
@ -421,6 +421,3 @@ Protection:
|
|||||||
antiBotSensibility: 5
|
antiBotSensibility: 5
|
||||||
# Duration in minutes of the antibot automatic system
|
# Duration in minutes of the antibot automatic system
|
||||||
antiBotDuration: 10
|
antiBotDuration: 10
|
||||||
VeryGames:
|
|
||||||
# These features are only available on VeryGames Server Provider
|
|
||||||
enableIpCheck: false
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user