Removed feature: forced-entry-section

This commit is contained in:
Jaime Martínez Rincón 2017-12-19 23:03:11 +01:00
parent 73631efc76
commit bf71b5263e
4 changed files with 0 additions and 50 deletions

View File

@ -50,10 +50,6 @@ public class ServerConnectListener implements Listener {
}
private ServerSection getSection(ProxiedPlayer player, ServerInfo target) {
if (player.getServer() == null && plugin.getSettings().getForcedEntrySectionProps().isEnabled()) {
return plugin.getSectionManager().getByName(plugin.getSettings().getForcedEntrySectionProps().getSectionName());
}
ServerSection section = plugin.getSectionManager().getByServer(target);
if (section != null) {

View File

@ -82,14 +82,6 @@ public class SettingsHolder {
featuresProps.setServerRefreshProps(serverRefreshProps);
}
public ForcedEntrySectionProps getForcedEntrySectionProps() {
return featuresProps.getForcedEntrySectionProps();
}
public void setForcedEntrySectionProps(ForcedEntrySectionProps forcedEntrySectionProps) {
featuresProps.setForcedEntrySectionProps(forcedEntrySectionProps);
}
@Override
public String toString() {
return "SettingsHolder{" +

View File

@ -1,29 +0,0 @@
package com.jaimemartz.playerbalancer.settings.props.features;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class ForcedEntrySectionProps {
@Setting
private boolean enabled;
@Setting(value = "section")
private String sectionName;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public String getSectionName() {
return sectionName;
}
public void setSectionName(String sectionName) {
this.sectionName = sectionName;
}
}

View File

@ -214,13 +214,4 @@ features {
# The interval between every refresh (in milliseconds)
interval=5000
}
# Forces the first server players connect (when not connected already) to be one of a specific section
# This overrides `force_default_server` from BungeeCord
force-entry-section {
enabled=false
# The section you want
section="auth-lobbies"
}
}