Jycraft 2017 Lectia 1

from org.bukkit import Bukkit
from org.bukkit import Location
from org.bukkit.util import Vector
from org.bukkit.entity import EntityType
from org.bukkit.entity import Snowball
from org.bukkit.entity import *
from org.bukkit.projectiles import *
from time import *
from org.bukkit import Effect
from mcapi_spigot import *
from org.bukkit.event.block import BlockPlaceEvent
s = Bukkit.getServer()
players=Bukkit.getOnlinePlayers()
player=players[0]
loc=player.getLocation()
w=player.getLocation().getWorld()
def build(e):
pos=e.getBlockPlaced().getLocation()
for i in range(-5,5):
for j in range(-5,5):
setblock(pos.x-i, pos.y, pos.z-j, Material.COBBLESTONE)
unregister_hooks()
register_hook(BlockPlaceEvent, build)

if (e.getBlockPlaced().getType()==Material.COBBLESTONE):
yell( “salut”)
drawCircle(lookingat(player),Material.COBBLESTONE,5)
drawHorizCircle(pos,e.getBlockPlaced().getType(),5)