Resource Group

Discussion in 'Spigot Plugin Development' started by bnjrKemal, May 26, 2018.

  1. Hello,
    I begin write plugin with Eclipse on today.
    My problem:
    Code (Text):

    @EventHandler
    public void OnPlayerMove(PlayerMoveEvent Event) {
        Player p = Event.getPlayer();
        Group g = p.getGroup();
    }
     
    Error: The method getGroup is undefined for the type Player.

    Why?
     
  2. Praya

    Benefactor

    Tag resource is used for guide/tutorial. If you want to ask question just post without any tag
     
  3. electronicboy

    IRC Staff

    1) The resource tag is for posts which offer an actual resource, not a question
    2) The error explains itself, Player does not have a method called group; Bukkit itself does not have a group system, you'll want to look at the vault api for interfacing with a permissions plugin