Summon with int X, int Z, int Y

Discussion in 'Plugin Development' started by Smillie, Oct 5, 2015.

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

    Smillie

    How to let it understand to get the int data.

    Code:
    public boolean SpawnMob(int MOB, int AMOUNT, int X, int Z, int Y) {
    if (MOB == 1) {
    if (AMOUNT == 1) {
    Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), "summon Slime X Z Y {size: 8}");
    }
    }
     
    Last edited by a moderator: Oct 5, 2015
  2. Online

    timtower Administrator Administrator Moderator

    Moved to plugin development.
    @Smillie You can do that with basic string handling, just stop the string, put the number there, continue the string
     
Thread Status:
Not open for further replies.

Share This Page