Skip to content

Commit

Permalink
🌈[main/_] Code Polish formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepymalc committed Aug 8, 2021
1 parent e97c3b4 commit 8f95a31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/linyuanlin/minecraft/models/PlayerData.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ public class PlayerData {
public Player player;

public int balance = 0;

public Optional<Team> team = Optional.empty();

public PlayerData(UUID uuid) throws Exception {

this.player = Bukkit.getServer().getPlayer(uuid);

if (this.player == null) throw new Exception("PLAYER_NOT_ONLINE");
if (this.player == null)
throw new Exception("PLAYER_NOT_ONLINE");

/* Import data from database */

Expand Down

0 comments on commit 8f95a31

Please sign in to comment.