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
25
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
23
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
25
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

Team online

Latest posts

Latest profile posts

AnolTongi wrote on Hqteful's profile.
Genuinely thank you for everything you've done, you're very much appreciated. Hope to see you around!
LorilambtheWcubecraftian wrote on Hqteful's profile.
Thanks for all ur help as mod! Enjoy your ccg retirement!! 💛
Kazwa wrote on Hqteful's profile.
Thanks for everything!
iTz1Hamood wrote on Hqteful's profile.
Thanks for everything, Mika. It honestly won’t be the same without you. I’m wishing you all the best in whatever comes next!! You truly deserve all the good things in life 🤍 I’ll always be grateful to you. You accepted my helper app, got me here.. and that meant alooot for me. Will miss you so much!! You’ve had such a positive impact on so many of us. Take care and stay amazing 💙
llvqs wrote on Hqteful's profile.
Thanks for everything and good luck with everything! 💙🧡
Top Bottom