do i look like some mlg 420 java noscoped html mysql xml scriptzor?Is this Lua?
do i look like some mlg 420 java noscoped html mysql xml scriptzor?Is this Lua?
lol.do i look like some mlg 420 java noscoped html mysql xml scriptzor?
@EventHandler
public void playerInteract(PlayerInteractEvent e)
{
Player p = e.getPlayer();
if (e.getAction() == Action.RIGHT_CLICK_BLOCK && (e.getClickedBlock().getType() == Material.DIAMOND_BLOCK))
{
p.performCommand("Help);
}
}
on leftclick with a golden axe:
player has the permission "555"
strike lightning at the targeted block
broadcast "Fear the mighty Hangar555!
lol.
Other things, for those that are curious :p
THIS IS A SIMPLE JAVA PLUGIN (Yes, this is only a half of a class... no spoon feed :p)
And this is SkriptCode:@EventHandler public void playerInteract(PlayerInteractEvent e) { Player p = e.getPlayer(); if (e.getAction() == Action.RIGHT_CLICK_BLOCK && (e.getClickedBlock().getType() == Material.DIAMOND_BLOCK)) { p.performCommand("Help); } }
Code:on leftclick with a golden axe: player has the permission "555" strike lightning at the targeted block broadcast "Fear the mighty Hangar555!
See the difference, true? Though those are for different things...
I can help you with the Java one :PI may do a Java tutorial after the Skript one ;)
lol.
Other things, for those that are curious :p
THIS IS A SIMPLE JAVA PLUGIN (Yes, this is only a half of a class... no spoon feed :p)
And this is SkriptCode:@EventHandler public void playerInteract(PlayerInteractEvent e) { Player p = e.getPlayer(); if (e.getAction() == Action.RIGHT_CLICK_BLOCK && (e.getClickedBlock().getType() == Material.DIAMOND_BLOCK)) { p.performCommand("Help); } }
Code:on leftclick with a golden axe: player has the permission "555" strike lightning at the targeted block broadcast "Fear the mighty Hangar555!
See the difference, true? Though those are for different things...
I don't know Skript but wouldn't
player has the permission "555"
have to be a conditional? Like:
if player has the permission "555"
makes more sense grammar-wise and coding-wise to me.
do i look like some mlg 420 java noscoped html mysql xml scriptzor?
Coding>LangugesI don't know Skript but wouldn't
player has the permission "555"
have to be a conditional? Like:
if player has the permission "555"
makes more sense grammar-wise and coding-wise to me.