Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[New API] Get Player from string

Comments in 'Plugin Development' started by Adaasi, Sep 10, 2014.

  1. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    How can I get a Player from string?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    $server->getPlayer($name)
    $server->getPlayerExact($name)

    Both case insensitive, the former is the player with the shortest name that starts with $name.
    EkiFoX and Adaasi like this.
  3. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    Thanks :)

Share This Page

Advertisement