Add Owner to Region

Discussion in 'Programming Help' started by Nosxxx, Mar 25, 2015.

  1. Nosxxx

    Nosxxx New Member

    Hey,
    I'm adding a player via

    LocalPlayer player = getWorldGuard().wrapOfflinePlayer( owner );
    pr.getOwners().addPlayer( player );

    to an region. It does work, but if i type in "/rg info" at this region the UUID is showed.
    [​IMG]
    Is there a way to display the user like this ?
    [​IMG]

    Thanks
  2. wizjany

    wizjany Administrator Developer

    You can force WorldGuard to cache the name by looking it up in the profile service (WorldGuardPlugin.getProfileService()).
  3. blueye_

    blueye_ New Member

    Thanks a lot. You would not believe how long I have been searching for this.