Minecraft PC IP: play.cubecraft.net

SanCookie

Gameplay Engineer
Mar 18, 2017
2,306
12,763
498
24
the selfie area
bit.ly
Pronouns
He/Him
Hey there, Cubecrafters!
Disclaimer: I don't know where I had to put this, so I put it here, because it has kind of something to do with coding...

While I was playing some Lucky Islands,
I was asking myself: what kind of command runs
when you hit a sign, or when you hit
the armourstand to play a random map.
And can you maybe run this command so you don't have
to run to the signs everytime?
/play Lucky_Islands
/play Skywars



If so, does anyone know the command to do this?
Obviously only a command to play a random map,
otherwise, a Stone rank could play any map.

-SanCookie

 

DrHam

Forum Professional
Sep 15, 2015
3,615
4,166
558
Kepler-452b
Then how are you going to explain that when u hit the signs, you automaticly teleport?
Code. More or less something like this


Code:
@EventHandler
public void onPlayerInteract(PlayerInteractEvent e) {
   if (e.getAction() != Action.RIGHT_CLICK_BLOCK) {
      return;
   }
   
   Block b = e.getClickedBlock();
   
   if (b.getType() != Material.SIGN && b.getType() != Material.WALL_SIGN && b.getType() != Material.SIGN_POST) {
      return;
   }
   
   // if (!(b.getState() instanceof Sign)) { return; }
   
   for (LobbySign sign : signs) {
      if (sign.getLocation().equals(b.getLocation())) {
         sign.getArena().addPlayer(e.getPlayer());
         break;
      }
   }
 

SanCookie

Gameplay Engineer
Mar 18, 2017
2,306
12,763
498
24
the selfie area
bit.ly
Pronouns
He/Him
Code. More or less something like this


Code:
@EventHandler
public void onPlayerInteract(PlayerInteractEvent e) {
   if (e.getAction() != Action.RIGHT_CLICK_BLOCK) {
      return;
   }
 
   Block b = e.getClickedBlock();
 
   if (b.getType() != Material.SIGN && b.getType() != Material.WALL_SIGN && b.getType() != Material.SIGN_POST) {
      return;
   }
 
   // if (!(b.getState() instanceof Sign)) { return; }
 
   for (LobbySign sign : signs) {
      if (sign.getLocation().equals(b.getLocation())) {
         sign.getArena().addPlayer(e.getPlayer());
         break;
      }
   }
Oh, ok
 
Members Online

Team online

Members online

Latest profile posts

We won the match, GG, to the other team. They did good, tbh
AliWarrior wrote on dafflovesosa15007's profile.
Thanks for the follow!
Nollq wrote on FakeOP's profile.
Thanks for the follow! :D
Loskol wrote on FakeOP's profile.
thanks for the
🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸 SPAIN SPAM 🇪🇸

Absolute footballing heritage. SPAIN JUST TOOK THE CROWN! 🏆🔥

🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴
🟡🟡🟡🟡🟡🟡🟡🟡🟡🟡🟡🟡🟡
🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴

SPAIN OWNS THIS TOURNAMENT. DEBATE A WALL. 🇪🇸👑
Top Bottom