Skip to content

Commit 48b3e14

Browse files
committed
consistent line continuation indentation
1 parent ea93477 commit 48b3e14

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

src/main/java/de/minebench/syncinv/PlayerData.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public GameMode getGamemode() {
189189

190190
/**
191191
* @return the players current experience points.
192-
* This refers to the total amount of experience the player has collected over time
193-
* and is not currently displayed to the client.
192+
* This refers to the total amount of experience the player has collected over time
193+
* and is not currently displayed to the client.
194194
*/
195195
public int getTotalExperience() {
196196
return totalExperience;
@@ -205,7 +205,7 @@ public int getLevel() {
205205

206206
/**
207207
* @return the players current experience points towards the next level
208-
* This is a percentage value. 0 is "no progress" and 1 is "next level".
208+
* This is a percentage value. 0 is "no progress" and 1 is "next level".
209209
*/
210210
public float getExp() {
211211
return exp;
@@ -248,7 +248,7 @@ public boolean isHealthScaled() {
248248

249249
/**
250250
* @return the number to scale health to for the client
251-
* Displayed health follows a simple formula displayedHealth = getHealth() / getMaxHealth() * getHealthScale()
251+
* Displayed health follows a simple formula displayedHealth = getHealth() / getMaxHealth() * getHealthScale()
252252
*/
253253
public double getHealthScale() {
254254
return healthScale;
@@ -263,17 +263,17 @@ public int getFoodLevel() {
263263

264264
/**
265265
* @return the players current saturation level.
266-
* Saturation is a buffer for food level. Your food level will not drop if you are saturated > 0.
266+
* Saturation is a buffer for food level. Your food level will not drop if you are saturated > 0.
267267
*/
268268
public float getSaturation() {
269269
return saturation;
270270
}
271271

272272
/**
273273
* @return the players current exhaustion level.
274-
* Exhaustion controls how fast the food level drops.
275-
* While you have a certain amount of exhaustion, your saturation will drop to zero,
276-
* and then your food will drop to zero.
274+
* Exhaustion controls how fast the food level drops.
275+
* While you have a certain amount of exhaustion, your saturation will drop to zero,
276+
* and then your food will drop to zero.
277277
*/
278278
public float getExhaustion() {
279279
return exhaustion;
@@ -330,7 +330,7 @@ public Vector getVelocity() {
330330

331331
/**
332332
* @return Set the slot number of the currently held item.
333-
* This validates whether the slot is between 0 and 8 inclusive.
333+
* This validates whether the slot is between 0 and 8 inclusive.
334334
*/
335335
public int getHeldItemSlot() {
336336
return heldItemSlot;

src/main/java/de/minebench/syncinv/SyncInv.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public boolean isLocked(UUID playerId) {
443443
* @param playerId The UUID of the player
444444
* @param online Whether or not it should return the current time if the player is online
445445
* @return The timestamp of his last known data on the server in milliseconds;
446-
* 0 if the file doesn't exist or an error occurs. (Take a look at {File#lastModified})
446+
* 0 if the file doesn't exist or an error occurs. (Take a look at {File#lastModified})
447447
*/
448448
public long getLastSeen(UUID playerId, boolean online) {
449449
if (online) {

src/main/java/de/minebench/syncinv/listeners/PlayerJoinListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public void onPlayerPreLogin(AsyncPlayerPreLoginEvent e) {
5050
if (plugin.getMessenger().queryData(e.getUniqueId()) == null && (!plugin.getMessenger().isAllowedToBeAlone() || !plugin.getMessenger().isAlone())) {
5151
e.setLoginResult(AsyncPlayerPreLoginEvent.Result.KICK_OTHER);
5252
e.setKickMessage(ChatColor.RED + "Unable to query player data!");
53-
return;
5453
}
5554
}
5655
}
@@ -71,7 +70,7 @@ public void onPlayerLogin(PlayerLoginEvent e) {
7170
} else if (entity != null) {
7271
// Well... this is weird. An entity with the same UUID as the player's exists?!? Removing it just to be sure...
7372
plugin.getLogger().info("A " + entity + " with the same UUID " + e.getPlayer().getUniqueId()
74-
+ " as the player login in existed on the server at " + entity.getLocation() + "... removing it!");
73+
+ " as the player login in existed on the server at " + entity.getLocation() + "... removing it!");
7574
entity.remove();
7675
}
7776
}

src/main/java/de/minebench/syncinv/messenger/Message.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ public Object read() {
6565

6666
/**
6767
* Generate a byte array out of the data of this message
68-
* @return The generated byte array (starts with the sender
69-
* then the type ordinal, then the amount
70-
* of data being send and each data object);
71-
* an empty one if an error occurred
68+
* @return The generated byte array (starts with the sender then the type ordinal,
69+
* then the amount of data being sent and each data object);
70+
* an empty one if an error occurred
7271
*/
7372
public byte[] toByteArray() {
7473
try (ByteArrayOutputStream bos = new ByteArrayOutputStream();

0 commit comments

Comments
 (0)