Skip to content

Commit

Permalink
🌈[main/_] Code Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepymalc committed Aug 22, 2021
1 parent d33486f commit 253bdf4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ buildNumber.properties
.project
.classpath
.idea
.DS_Store
3 changes: 1 addition & 2 deletions src/main/java/com/linyuanlin/minecraft/models/Guild.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
public class Guild {
private Player president;
private List<Player> memberList, lordList, vicePresidentList;
private int Capacity = 10;
private int Capacity = 10, level = 1;
private boolean freeJoin = true;
private int level = 1;

private static class LevelAttributes {
private int cost, memberNums, lordNums, vicePresidentNums;
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/linyuanlin/minecraft/models/WorldData.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,30 @@ public WorldData(String id, String name, String description, World world) {
this.world = world;
}

/*
* return the world Id
*/
public String getWoldId() {
return worldId;
}

/*
* return the world name
*/
public String getWorldName() {
return worldName;
}

/*
* return the world description
*/
public String getWorldDescription() {
return worldDescription;
}

/*
* return the world
*/
public World getWorld() {
return world;
}
Expand Down

0 comments on commit 253bdf4

Please sign in to comment.