Solved help..

Discussion in 'BungeeCord Plugin Development' started by Vrsd12, Apr 5, 2017.

  1. And what is your problem?
  2. I can not create the Player variable
  3. Why not?
  4. main
    Code (Text):
    public ArrayList<UUID> InGame = new ArrayList<>();
    Code (Text):
      public void setLevel(int timer){
                  for (UUID uuid : Main.getInstace().InGame){
                      Player p = Bukkit.getPlayer(uuid); /error/
  5. What is the error?
  6. Bukkit.getPlayer , It does not work
  7. What does it say when hovering over the red line?
  8. b07c657bff7e919d97aca8ccc874fec5.png

    I send you a screenshot
  9. Fine then, click the lightbulb on the left side instead.
  10. Your IDE is suggesting the answer to you.
    Change to getPlayer(uuid)

    The P should be uppercase.
  11. The "P" is capitalized
  12. And remains the same
  13. Are you sure? Try saving and waiting a few secounds.
    If it still does not work do what i said above:

    Click the lightbulb on the left side and send the message.
  14. I just sent you a screenshot of what happens
  15. Thats what happens when the P is non-capitalized; It will give you suggestions. What happens when the P is capitalized?
  16. says :the method getPlayer(string) is the type bukkit is not applicable for the arguments (uuid)
  17. already found the error was improperly charged for the spigot not charge well

Share This Page