[HELP] Need help with an Skript

Discussion in 'Archived: Plugin Requests' started by xKoKSii, Dec 11, 2011.

  1. Offline

    xKoKSii

    Code:java
    1. public void onEnable()
    2. {
    3. PluginDescriptionFile pdfFile = getDescription();
    4. PluginManager pm = getServer().getPluginManager();
    5. getCommand("xButton").setExecutor(new Commands(this));
    6. pm.registerEvent(Event.Type PLAYER_INTERACT, this.playerListener, Event.Priority.Normal, this);

    It give's me an error on Event.Type and an Error on Event.Priority
    any Help?
    :)
     
  2. Offline

    dbizzzle

    You forgot the "." after Event.Type So just use this and put your executor stuff back in:

    Code:java
    1.  
    2. public void onEnable() {
    3. PluginManager pm = getServer().getPluginManager();
    4. pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);
    5. log.info("Plugin Enabled");
    6. }
    7.  
     

Share This Page