Minecraft PC IP: play.cubecraft.net

Do you want to see this in the future?

  • Yes :)

    Votes: 12 80.0%
  • No ;(

    Votes: 3 20.0%

  • Total voters
    15

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
do i look like some mlg 420 java noscoped html mysql xml scriptzor?
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)
Code:
 @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);
        }
    }
And this is Skript
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...
 

pewax

Well-Known Member
Sep 4, 2015
219
32
103
23
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)
Code:
 @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);
        }
    }
And this is Skript
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 may do a Java tutorial after the Skript one ;)
 

LowFat

Well-Known Member
Dec 23, 2015
390
270
138
24
The Chunk Network
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)
Code:
 @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);
        }
    }
And this is Skript
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.
 

pewax

Well-Known Member
Sep 4, 2015
219
32
103
23
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.

Yes you are correct but its more like,

if player has permission "permission":
 

iblue

Well-Known Member
Apr 17, 2016
32
3
84
22
This is me. I wanna learn code. So I start to learn code and then I just say break time in like 10 sec. Then I never go on it. Lol
 

Max ♠

Forum Expert
Feb 20, 2016
1,420
2,940
344
24
North pole
do i look like some mlg 420 java noscoped html mysql xml scriptzor?
tmp_2941-images(22)1321780529.jpeg
 

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
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.
Coding>Languges
Jk, you are correct, on Java(and more), except if the Skript page on bukkit it's wrong, what I copy-edited-pasted is correct.
 
Members Online

Members online

Latest profile posts

Thank you for 6.1K! ❤️
Apparently I hack IN PARKOUR LOLOLOL
IMG_6919.png

😂🤣

After uttering those 3 words, the dude left and gave me a free win xD
A picture of my cat sleeping having kitty dreams
1000053259.jpg
kfccaleb wrote on WayneX4's profile.
You can now have a follow after I played with you!
How do you make spoilers with a name?
Top Bottom