Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BattleArena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Show more breadcrumbs
Scherbaum Maximilian
BattleArena
Commits
5017cac3
Commit
5017cac3
authored
1 year ago
by
Elrabu
Browse files
Options
Downloads
Patches
Plain Diff
eb093: update: updated server class
parent
e2484836
No related branches found
No related tags found
5 merge requests
!74
V1
,
!73
Initial commit
,
!71
Merge DataBase into Development
,
!54
Update: coreMaps.json (added new maps)
,
!51
Multiplayer
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java
+2
-2
2 additions, 2 deletions
...e/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java
with
2 additions
and
2 deletions
src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java
+
2
−
2
View file @
5017cac3
...
@@ -36,11 +36,11 @@ public class Server {
...
@@ -36,11 +36,11 @@ public class Server {
private
static
String
ipaddress
=
"localhost"
;
private
static
String
ipaddress
=
"localhost"
;
//Uncomment these lines to test the server starting manually:
//Uncomment these lines to test the server starting manually:
public
static
void
main
(
String
[]
args
)
throws
IOException
{
//main method for testing purposes
/*
public static void main(String[] args) throws IOException { //main method for testing purposes
Server server = new Server();
Server server = new Server();
log.info("server starting...");
log.info("server starting...");
server.start(4444);
server.start(4444);
}
}
*/
//use this method to start the server from another class
//use this method to start the server from another class
public
void
startServer
()
throws
IOException
{
public
void
startServer
()
throws
IOException
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment