You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/laytonsmith/core/functions/PlayerManagement.java
+29-18Lines changed: 29 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -826,24 +826,35 @@ public Integer[] numArgs() {
826
826
827
827
@Override
828
828
publicStringdocs() {
829
-
return"mixed {[pName], [value]} Returns various information about the player specified, or the current player if no argument was given. ---- "
830
-
+ "If value is set, it should be an integer of one of the following indexes, and only that information for that index"
831
-
+ " will be returned. Otherwise if value is not specified (or is -1), it returns an array of"
832
-
+ " information with the following pieces of information in the specified index: "
833
-
+ "<ul><li>0 - player's name; This will return the player's exact name, "
834
-
+ " even if called with a partial match.</li><li>1 - player's location; an array of the player's xyz coordinates</li><li>2 - player's cursor; an array of the "
835
-
+ "location of the player's cursor, or null if the block is out of sight.</li><li>3 - player's IP; Returns the IP address of this player.</li><li>4 - Display name; The name that is used when the"
836
-
+ " player's name is displayed on screen typically. </li><li>5 - player's health; Gets the current health of the player, which will be an int"
837
-
+ " from 0-20.</li><li>6 - Item in hand; The value returned by this will be similar to the value returned by get_block_at()</li><li>7 - "
838
-
+ "World name; Gets the name of the world this player is in.</li><li>8 - Is Op; true or false if this player is an op.</li><li>9 - player groups;"
839
-
+ " An array of the permissions groups the player is in.</li><li>10 - The player's hostname (or IP if a hostname can't be found)</li>"
840
-
+ " <li>11 - Is sneaking?</li><li>12 - Host; The host the player connected to.</li>"
841
-
+ " <li>13 - Player UUID (This is the same as 20, but is left in for backwards compatibility reasons.)</li>"
842
-
+ " <li>14 - Is player in a vehicle? Returns true or false.</li>"
843
-
+ " <li>15 - The slot number of the player's current hand.</li>"
844
-
+ " <li>16 - Is sleeping?</li><li>17 - Is blocking?</li><li>18 - Is flying?</li><li>19 - Is sprinting?</li>"
845
-
+ " <li>20 - Player UUID"
846
-
+ " </ul>";
829
+
return"mixed {[player], [value]} Returns various information about the player specified, or the current"
830
+
+ " player if no argument was given. ----"
831
+
+ " If value is set, it should be an integer of one of the following indexes, and only that"
832
+
+ " information for that index will be returned. Otherwise if value is not specified (or is -1), it"
833
+
+ " returns an array of information with the following pieces of information in the specified index:"
834
+
+ "<ul>"
835
+
+ "<li>0 - player's name; This will return the player's exact name,"
836
+
+ " even if called with a partial match.</li>"
837
+
+ "<li>1 - player's location; a location array of the player's coordinates</li>"
838
+
+ "<li>2 - player's cursor; an array of the location of the player's cursor,"
839
+
+ " or null if the block is out of sight.</li>"
840
+
+ "<li>3 - player's IP; Returns the IP address of this player.</li>"
841
+
+ "<li>4 - Display name; The name that is typically used when displayed on screen.</li>"
842
+
+ "<li>5 - player's health; The current health of the player, which will be an int from 0-20.</li>"
843
+
+ "<li>6 - Item in hand; The type and data for the item in the 0:0 format. (deprecated)</li>"
844
+
+ "<li>7 - World name; Gets the name of the world this player is in.</li>"
845
+
+ "<li>8 - Is Op; true or false if this player is an op.</li>"
846
+
+ "<li>9 - player groups; An array of the groups the player is in, by permission nodes.</li>"
847
+
+ "<li>10 - The player's hostname (or IP if a hostname can't be found)</li>"
848
+
+ "<li>11 - Is sneaking?</li><li>12 - Host; The host the player connected to.</li>"
849
+
+ "<li>13 - Player UUID; (This is the same as 20, but exists for backwards compatibility.)</li>"
850
+
+ "<li>14 - Is player in a vehicle? Returns true or false.</li>"
851
+
+ "<li>15 - Held Slot; The slot number of the player's current hand.</li>"
852
+
+ "<li>16 - Is sleeping?</li>"
853
+
+ "<li>17 - Is blocking?</li>"
854
+
+ "<li>18 - Is flying?</li>"
855
+
+ "<li>19 - Is sprinting?</li>"
856
+
+ "<li>20 - Player UUID; The unique identifier for this player's account as returned by puuid()."
0 commit comments