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

Members online

Latest profile posts

ItzJuan wrote on iTz1Hamood's profile.
HaMOD!
Syntax Error wrote on Verbramdt's profile.
nice to see anothher mod on the team! congrats!
_The13thDoctor_ wrote on Verbramdt's profile.
Congrats!
CrystalLegend01 wrote on iTz1Hamood's profile.
Congratulations on becoming a mod!
coolzombiee wrote on iTz1Hamood's profile.
Hey congratulations! Cool new mod fr
Top Bottom