Permissions File

Discussion in 'Plugin Development' started by Danielh90, Dec 22, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Danielh90

    Hey i was thinking i can have permission file ? i am just checking because in Intellij
    its graying out the import of the permissions and commd_danielkit ? i jus saw it some where and it looked like somthing i can use in my private plugin :D
    Code:
    package com.danielh90.dan;
    
    import org.bukkit.permissions.Permission;
    
    /**
    * Created by None on 12/22/2014.
    */
    public class Permissions {
    
        public static Permissions command_danielkit = new Permissions(dan_danielkit);
    }
    
     
    Last edited: Dec 22, 2014
  2. Offline

    Skionz

    @Danielh90 Its probably grayed out because you never used it. Why are you creating a static instance of your class? Why not just create a new instance wherever you need the class, or pass a single instance around with constructors?
     
Thread Status:
Not open for further replies.

Share This Page