Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bungeecord-Auto-Multiserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
UWU
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Lilly Schramm
Bungeecord-Auto-Multiserver
Merge requests
!5
Add FTP down- and upload
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add FTP down- and upload
feat/ftp-backup
into
main
Overview
1
Commits
20
Pipelines
0
Changes
17
Merged
Lilly Schramm
requested to merge
feat/ftp-backup
into
main
3 years ago
Overview
1
Commits
20
Pipelines
0
Changes
17
Expand
Created by: EliasSchramm
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
bf502bd0
20 commits,
2 years ago
17 files
+
449
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
17
Search (e.g. *.vue) (Ctrl+P)
Bungee/src/main/java/de/epsdev/plugins/bungee/Bungee.java
+
11
−
1
Options
@@ -166,6 +166,11 @@ public final class Bungee extends Plugin {
if
(!
configuration
.
contains
(
"bans"
))
configuration
.
set
(
"bans"
,
Arrays
.
asList
(
"uuid;10;UwU"
));
if
(!
configuration
.
contains
(
"ftp_server_address"
))
configuration
.
set
(
"ftp_server_address"
,
""
);
if
(!
configuration
.
contains
(
"ftp_server_port"
))
configuration
.
set
(
"ftp_server_port"
,
21
);
if
(!
configuration
.
contains
(
"ftp_server_user"
))
configuration
.
set
(
"ftp_server_user"
,
""
);
if
(!
configuration
.
contains
(
"ftp_server_password"
))
configuration
.
set
(
"ftp_server_password"
,
""
);
if
(
configuration
.
contains
(
"key"
)
&&
configuration
.
contains
(
"default_type"
)){
key
=
configuration
.
getString
(
"key"
);
default_type
=
configuration
.
getString
(
"default_type"
);
@@ -178,13 +183,18 @@ public final class Bungee extends Plugin {
new
Ban
(
fields
[
0
],
Integer
.
parseInt
(
fields
[
1
]),
fields
[
2
]);
}
}
else
{
}
else
{
configuration
.
set
(
"key"
,
key
);
configuration
.
set
(
"default_type"
,
default_type
);
}
saveConfig
();
EPS_API
.
ftpServerAddress
=
configuration
.
getString
(
"ftp_server_address"
);
EPS_API
.
ftpServerPort
=
configuration
.
getInt
(
"ftp_server_port"
);
EPS_API
.
ftpServerUser
=
configuration
.
getString
(
"ftp_server_user"
);
EPS_API
.
ftpServerPassword
=
configuration
.
getString
(
"ftp_server_password"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
Loading