How to give a specific player something in a event

Discussion in 'Plugin Development' started by Michiman, Jul 6, 2015.

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

    Michiman

    I remember seeing something like this a while ago but i forgot. In events, How do i make someone with a specific name always get something. Like for example im if player Michiman joins the server a firework spawns on them. But i wouldnt want that to happen to anyone else only the person named X.


    How would i make that possible?
     
  2. Offline

    teej107

    @Michiman Just do a simple if statement comparing the Player's name.
     
  3. Offline

    Michiman

    How would you do that? I also checked the list of events but nothing really told me what to do
     
  4. Offline

    teej107

    Read the JavaDocs. They give a good explanation of the events/methods in them. Comparing Player names are comparing Strings.
     
Thread Status:
Not open for further replies.

Share This Page