This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
World world = Bukkit.getWorlds().get(0); | |
Horse horse = (Horse) world.spawnEntity(new Location(world, 0, 128, 0), EntityType.HORSE); | |
horse.setCustomName("Spawn Point"); | |
horse.setCustomNameVisible(true); | |
WitherSkull skull = (WitherSkull) world.spawnEntity(new Location(world, 0, 128, 0), EntityType.WITHER_SKULL); | |
skull.setPassenger(horse); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER $$ | |
/* | |
* This routine execute some SQL statements passed as parameter | |
* params: | |
* - sqlStatements(MEDIUMTEXT): the text containing all the SQL to execute | |
* - delimiter(VARCHAR 255) : the delimiter string between the SQL statements | |
* - autocommit(INT) : set wether auto-commit mode is used or not (0/1) | |
* | |
* The goal of this routine is too clearly improve the execution speed |