Solved Args

Discussion in 'Plugin Development' started by JarFile, Feb 9, 2015.

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

    JarFile

    I'm trying to teleport a player to a specific location when a player types in </make [player] teleport [x] [y] [z]>
    I have everything set up, but when I got to teleport the player
    Code:
                                                        o.teleport(new Location(o.getWorld(), args[2], args[3], args[4]));
    
    It gives me an error saying the constructor isn't world, string, string, string. How would I change the args to be an int instead of a string?
     
  2. Offline

    adam753

  3. Offline

    JarFile

Thread Status:
Not open for further replies.

Share This Page