Permalink
Browse files

Document player UUID support in player functions

  • Loading branch information...
PseudoKnight committed Dec 18, 2017
1 parent 5f18dc3 commit 5498512761fc647295861f189478eae8bcb05d63
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/main/java/com/laytonsmith/core/functions/PlayerManagement.java
@@ -85,7 +85,8 @@
public class PlayerManagement {
public static String docs() {
return "This class of functions allow players to be managed";
return "This class of functions allow players to be managed. Functions that accept an online player's name will"
+ " also accept their UUID.";
}
@api(environments = {CommandHelperEnvironment.class})
@@ -128,7 +129,9 @@ public Construct exec(Target t, Environment env, Construct... args) throws Cance
@Override
public String docs() {
return "string {[playerName]} Returns the full name of the partial Player name specified or the Player running the command otherwise."
return "string {[playerName]} Returns a player's name. If a string is specified, it will attempt to find"
+ " a complete match for a partial name. If no string is specified, the current player is returned."
+ " UUIDs are also accepted for this and other online player functions."
+ " If the command is being run from the console, then the string '" + Static.getConsoleName()
+ "' is returned. If the command came from a CommandBlock, the block's name prefixed with "
+ Static.getBlockPrefix() + " is returned. If the command is coming from elsewhere,"

0 comments on commit 5498512

Please sign in to comment.