Skip to content

Commit e64e3b8

Browse files
committed
Fix typos and formatting in JavaDoc comments
1 parent fd3002d commit e64e3b8

File tree

4 files changed

+36
-32
lines changed

4 files changed

+36
-32
lines changed

src/main/java/net/milkbowl/vault/chat/Chat.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ public void setPlayerInfoBoolean(Player player, String node, boolean value) {
705705
/**
706706
* Get a groups informational node (Boolean) value
707707
*
708-
* @param world Name of World
709-
* @param group Name of Group
708+
* @param world Name of the world
709+
* @param group Name of the group
710710
* @param node Permission node
711711
* @param defaultValue Default value
712712
* @return Value
@@ -850,8 +850,8 @@ public void setPlayerInfoString(Player player, String node, String value) {
850850
/**
851851
* Get a groups informational node (String) value
852852
*
853-
* @param world Name of World
854-
* @param group Name of Group
853+
* @param world Name of the world
854+
* @param group Name of the group
855855
* @param node Permission node
856856
* @param defaultValue Default value
857857
* @return Value
@@ -911,7 +911,7 @@ public boolean playerInGroup(@Nullable String world, OfflinePlayer player, Strin
911911
* @param group Group name
912912
* @return Success or Failure
913913
* @deprecated As of VaultAPI 1.4 use {@link #playerInGroup(String, OfflinePlayer, String)} instead.
914-
* Check if player is member of a group.
914+
* Check if the player is a member of a group.
915915
*/
916916
@Deprecated(since = "1.4")
917917
public boolean playerInGroup(@Nullable String world, String player, String group) {
@@ -924,7 +924,7 @@ public boolean playerInGroup(@Nullable String world, String player, String group
924924
* @param group Group name
925925
* @return Success or Failure
926926
* @deprecated As of VaultAPI 1.4 use {@link #playerInGroup(String, OfflinePlayer, String)} instead.
927-
* Check if player is member of a group.
927+
* Check if the player is a member of a group.
928928
*/
929929
@Deprecated(since = "1.4")
930930
public boolean playerInGroup(@Nullable World world, String player, String group) {

src/main/java/net/milkbowl/vault/economy/Economy.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ public interface Economy {
5757
int fractionalDigits();
5858

5959
/**
60-
* Format amount into a human readable String This provides translation into
60+
* Format amount into a human-readable String This provides translation into
6161
* economy specific formatting to improve consistency between plugins.
6262
*
6363
* @param amount to format
64-
* @return Human readable string describing amount
64+
* @return Human-readable string describing amount
6565
*/
6666
String format(double amount);
6767

6868
/**
6969
* Returns the name of the currency in plural form.
70-
* If the economy being used does not support currency names then an empty string will be returned.
70+
* If the economy being used does not support currency names, then an empty string will be returned.
7171
*
7272
* @return name of the currency (plural)
7373
*/
@@ -76,7 +76,7 @@ public interface Economy {
7676

7777
/**
7878
* Returns the name of the currency in singular form.
79-
* If the economy being used does not support currency names then an empty string will be returned.
79+
* If the economy being used does not support currency names, then an empty string will be returned.
8080
*
8181
* @return name of the currency (singular)
8282
*/
@@ -90,9 +90,9 @@ public interface Economy {
9090
boolean hasAccount(String playerName);
9191

9292
/**
93-
* Checks if this player has an account on the server yet
94-
* This will always return true if the player has joined the server at least once
95-
* as all major economy plugins auto-generate a player account when the player joins the server
93+
* Checks if this player has an account on the server, yet.
94+
* This will always return true if the player has joined the server at least once
95+
* as all major economy plugins auto-generate a player account when the player joins the server.
9696
*
9797
* @param player to check
9898
* @return if the player has an account
@@ -106,9 +106,9 @@ public interface Economy {
106106
boolean hasAccount(String playerName, @Nullable String worldName);
107107

108108
/**
109-
* Checks if this player has an account on the server yet on the given world
109+
* Checks if this player has an account on the server yet on the given world.
110110
* This will always return true if the player has joined the server at least once
111-
* as all major economy plugins auto-generate a player account when the player joins the server
111+
* as all major economy plugins auto-generate a player account when the player joins the server.
112112
*
113113
* @param player to check in the world
114114
* @param worldName world-specific account
@@ -138,7 +138,7 @@ public interface Economy {
138138

139139
/**
140140
* Gets balance of a player on the specified world.
141-
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.
141+
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this, the global balance will be returned.
142142
*
143143
* @param player to check
144144
* @param world name of the world
@@ -169,7 +169,7 @@ public interface Economy {
169169

170170
/**
171171
* Checks if the player account has the amount in a given world - DO NOT USE NEGATIVE AMOUNTS
172-
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.
172+
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this, the global balance will be returned.
173173
*
174174
* @param player to check
175175
* @param worldName to check with
@@ -201,7 +201,7 @@ public interface Economy {
201201

202202
/**
203203
* Withdraw an amount from a player on a given world - DO NOT USE NEGATIVE AMOUNTS
204-
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.
204+
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this, the global balance will be returned.
205205
*
206206
* @param player to withdraw from
207207
* @param worldName - name of the world
@@ -233,7 +233,7 @@ public interface Economy {
233233

234234
/**
235235
* Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
236-
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the global balance will be returned.
236+
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this, the global balance will be returned.
237237
*
238238
* @param player to deposit to
239239
* @param worldName name of the world
@@ -359,7 +359,7 @@ public interface Economy {
359359

360360
/**
361361
* Attempts to create a player account for the given player on the specified world
362-
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this then false will always be returned.
362+
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this, then false will always be returned.
363363
*
364364
* @param player OfflinePlayer
365365
* @param worldName String name of the world

src/main/java/net/milkbowl/vault/economy/EconomyResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class EconomyResponse {
3737
*/
3838
public final ResponseType type;
3939
/**
40-
* Error message if the variable 'type' is ResponseType.FAILURE
40+
* Error message if the variable 'type' is {@link ResponseType#FAILURE}
4141
*/
4242
public final @Nullable String errorMessage;
4343

src/main/java/net/milkbowl/vault/permission/Permission.java

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ public boolean has(@Nullable World world, String player, String permission) {
7373

7474
/**
7575
* Checks if a CommandSender has a permission node.
76-
* This will return the result of bukkits, generic .hasPermission() method and is identical in all cases.
76+
* This will return the result of bukkit's, generic .hasPermission() method and is identical in all cases.
7777
* This method will explicitly fail if the registered permission system does not register permissions in bukkit.
7878
* <p>
79-
* For easy checking of a commandsender
79+
* For easy checking of a command sender
8080
*
8181
* @param sender to check permissions on
8282
* @param permission to check for
@@ -175,7 +175,8 @@ public boolean playerAdd(@Nullable String world, OfflinePlayer player, String pe
175175

176176
/**
177177
* Add permission to a player ONLY for the world the player is currently on.
178-
* This is a world-specific operation, if you want to add global permission you must explicitly use NULL for the world.
178+
* This is a world-specific operation, if you want to add global permission,
179+
* you must explicitly use NULL for the world.
179180
* See {@link #playerAdd(String, OfflinePlayer, String)} for global permission use.
180181
*
181182
* @param player Player Object
@@ -310,7 +311,8 @@ public boolean playerRemove(@Nullable World world, String player, String permiss
310311

311312
/**
312313
* Remove permission from a player.
313-
* Will attempt to remove permission from the player on the player's current world. This is NOT a global operation.
314+
* Will attempt to remove permission from the player in the player's current world.
315+
* This is NOT a global operation.
314316
*
315317
* @param player Player Object
316318
* @param permission Permission node
@@ -324,8 +326,8 @@ public boolean playerRemove(Player player, String permission) {
324326
/**
325327
* Remove transient permission from a player.
326328
* This implementation can be used by any subclass which implements a "pure" superperms plugin, i.e.
327-
* one that only needs the built-in Bukkit API to remove transient permissions from a player. Any subclass
328-
* implementing a plugin which provides its own API for this needs to override this method.
329+
* one that only needs the built-in Bukkit API to remove transient permissions from a player.
330+
* Any subclass implementing a plugin which provides its own API for these needs to override this method.
329331
*
330332
* @param player OfflinePlayer
331333
* @param permission Permission node
@@ -461,7 +463,7 @@ public boolean playerInGroup(@Nullable String world, OfflinePlayer player, Strin
461463
/**
462464
* Check if player is member of a group.
463465
* This method will ONLY check groups for which the player is in that are defined for the current world.
464-
* This may result in odd return behaviour depending on what permission system has been registered.
466+
* This may result in odd return behavior depending on what permission system has been registered.
465467
*
466468
* @param player Player Object
467469
* @param group Group name
@@ -501,8 +503,9 @@ public boolean playerAddGroup(@Nullable String world, OfflinePlayer player, Stri
501503

502504
/**
503505
* Add player to a group.
504-
* This will add a player to the group on the current World. This may return odd results if the permission system
505-
* being used on the server does not support world-specific groups, or if the group being added to is a global group.
506+
* This will add a player to the group in the current World.
507+
* This may return odd results if the permission system being used on the server does not support world-specific groups,
508+
* or if the group being added to is a global group.
506509
*
507510
* @param player Player Object
508511
* @param group Group name
@@ -542,8 +545,9 @@ public boolean playerRemoveGroup(@Nullable String world, OfflinePlayer player, S
542545

543546
/**
544547
* Remove player from a group.
545-
* This will add a player to the group on the current World. This may return odd results if the permission system
546-
* being used on the server does not support world-specific groups, or if the group being added to is a global group.
548+
* This will add a player to the group in the current World.
549+
* This may return odd results if the permission system being used on the server does not support world-specific groups,
550+
* or if the group being added to is a global group.
547551
*
548552
* @param player Player Object
549553
* @param group Group name

0 commit comments

Comments
 (0)