Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void addSign(Location loc, String serverID, int MaxPlayer, String displayName, String minigame){
- String path = "signs." + serverID;
- /*Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + " Rajout Sign a la location:");
- Bukkit.getConsoleSender().sendMessage(ChatColor.RED + " X: " + ChatColor.GREEN + loc.getBlockX());
- Bukkit.getConsoleSender().sendMessage(ChatColor.RED + " Y: " + ChatColor.GREEN + loc.getBlockY());
- Bukkit.getConsoleSender().sendMessage(ChatColor.RED + " Z: " + ChatColor.GREEN + loc.getBlockZ());
- Bukkit.getConsoleSender().sendMessage(ChatColor.RED + " Serveur de Redirection: " + ChatColor.GREEN + serverID);
- Bukkit.getConsoleSender().sendMessage(ChatColor.RED + " Joueurs Maximum: " + ChatColor.GREEN + MaxPlayer);
- Bukkit.getConsoleSender().sendMessage(ChatColor.RED + " MiniJeux: " + ChatColor.GREEN + minigame);*/
- signs.set(path+".x", loc.getBlockX());
- signs.set(path+".y", loc.getBlockY());
- signs.set(path+".z", loc.getBlockZ());
- signs.set(path+".world", loc.getWorld().getName());
- signs.set(path+".maxplayer", MaxPlayer);
- signs.set(path+".serverid", serverID);
- signs.set(path+".displayname", displayName);
- signs.set(path+".minigame", minigame);
- try{
- signs.save(Main.signs);
- }catch(IOException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement