mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-09 04:20:32 +01:00
Removed feature: forced-entry-section
This commit is contained in:
parent
73631efc76
commit
bf71b5263e
@ -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) {
|
||||
|
@ -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{" +
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user