Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-862

OfflinePlayer#hasPlayedBefore is not accurate.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • None
      • Java version 1.8.0_31
      • Spigot version git-Spigot-870264a-0a645a2 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)

      In the attached image, it shows two logins and a command ran upon entry both times. The first time, as shown, the plugin returns that the player has not played before. The second time, done after reconnecting, shows that the player has played before.

      This is a major issue in some cases, as many plugins use this to decide whether or not to save a file. An example is shown in a plugin called "EasyChests." It does not save a new player's chest, as hasPlayedBefore() returns false on them.

        1. HasPlayedBefore.java
          0.8 kB
          jjm_223
        2. Testing.png
          336 kB
          jjm_223

            Unassigned Unassigned
            jjm_223 jjm_223
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: