Grabbing Information from Essentials?

Discussion in 'Plugin Development' started by Eggspurt, Apr 22, 2015.

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

    Eggspurt

    How would I grab information from Essentials I am specifically looking for the

    /kick player [Reason]

    I want the "Reason" part.

    Is this possible? Any suggestions?
     
  2. Offline

    nj2miami

  3. Offline

    Agentleader1

    This can be easier than what
    @nj2miami said.

    Code:
    @EventHandler
    public void onKick(PlayerKickEvent pke){
        String kickReason = pke.getReason();
        if(kickReason.equalsIgnoreCase("blah blah"){
            //do your code here
       }
    }
     
  4. Offline

    nj2miami

    This is true. It all depends if he wishes to react to the event or only capture the reason. If it is ONLY to capture the reason, @Agentleader1 is correct in being much simpler to do so.

    If he is making a plugin which allows Essentials to kick but he wants to do something with it before kicking them, then you have to go about capturing it in preprocess.
     
  5. Offline

    Agentleader1

    @nj2miami He be talking dem command man. Dem only odder dings dat be causing deh keecks are from odder plugins or fl-I-ing.
     
  6. Offline

    nj2miami

    What language are you speaking?
     
  7. Offline

    Agentleader1

  8. Offline

    mine-care

    @Agentleader1 @nj2miami I think he is speaking my language because I can understand it perfectly :- D
    Ειδόυ λοιπών! (That's how mine looks like)
     
  9. Offline

    Agentleader1

    mine-care likes this.
Thread Status:
Not open for further replies.

Share This Page