1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cubecraft skywars 2

Discussion in 'Tech Support' started by thekillerguy, Jun 29, 2015.

  1. thekillerguy

    thekillerguy Member

    Joined:
    May 30, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    3
    Gender:
    Male
    hi staff from cubecraft

    oke you don't give the plugin that is what i am not verry happy about but can you tell me please how you make the plugin with votes for op and basic and normal or have you start with a plugin and modify it

    please help me please
     
  2. _Patrickk

    _Patrickk Member

    Joined:
    Oct 16, 2014
    Messages:
    579
    Likes Received:
    880
    Trophy Points:
    93
    Gender:
    Male
    Location:
    Australia
    All of the plugins on the server are made from scratch, the development team don't use anyone else's plugins. I hope I answered your question. :)
     
  3. PartyBlaze

    PartyBlaze Member

    Joined:
    Nov 27, 2014
    Messages:
    1,194
    Likes Received:
    1,320
    Trophy Points:
    113
    Location:
    Europe
    The plugins aren't available for other users too.
     
  4. JordyPwner

    JordyPwner Member

    Joined:
    Apr 28, 2015
    Messages:
    488
    Likes Received:
    99
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    <== Uhm?
    Location:
    Cybertron
    *Cough* Not true *cough* :p
     
  5. Colourlight

    Colourlight Member

    Joined:
    Feb 7, 2015
    Messages:
    2,159
    Likes Received:
    482
    Trophy Points:
    83
    Gender:
    Male
    Occupation:
    Stalkers these days *shakes head*
    Location:
    Scotland, UK
    Home Page:
    P.EX, uSkyblock , PlotMe, factions, worldedit.
     
  6. JordyPwner

    JordyPwner Member

    Joined:
    Apr 28, 2015
    Messages:
    488
    Likes Received:
    99
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    <== Uhm?
    Location:
    Cybertron
    *Dramatic sound*
     
  7. _Patrickk

    _Patrickk Member

    Joined:
    Oct 16, 2014
    Messages:
    579
    Likes Received:
    880
    Trophy Points:
    93
    Gender:
    Male
    Location:
    Australia
    Well this is awkward.
     
  8. thekillerguy

    thekillerguy Member

    Joined:
    May 30, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    3
    Gender:
    Male
    is there staff that can answer my question
     
  9. JordyPwner

    JordyPwner Member

    Joined:
    Apr 28, 2015
    Messages:
    488
    Likes Received:
    99
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    <== Uhm?
    Location:
    Cybertron
    They don't give out the plugins. But i can give you a example here.

    Code:
        @EventHandler
        public void onInventoryClick(InventoryClickEvent e){
              Player player = (Player) e.getWhoClicked();
              ItemStack clicked = e.getCurrentItem();
              Inventory inventory = e.getInventory();
             
              if (inventory.getName().equals(ChatColor.GOLD + "Skywars Vote Chest Items")){
                  if(inventory != null){
                      if(clicked != null){
                          if (clicked.getType() == Material.CHEST){
                              e.setCancelled(true);
                              if(clicked.hasItemMeta()){
                                  if(clicked.getItemMeta().getDisplayName().equalsIgnoreCase(ChatColor.GRAY + "Basic Chests")){
                                      Skywars.SetChestType(SWchestType.BASIC);
                                      player.closeInventory();
                                  }else if(clicked.getItemMeta().getDisplayName().equalsIgnoreCase(ChatColor.YELLOW + "Normal Chests")){
                                      Skywars.SetChestType(SWchestType.NORMAL);
                                      player.closeInventory();
                                  }else if(clicked.getItemMeta().getDisplayName().equalsIgnoreCase(ChatColor.AQUA + "Overpowered Chests")){
                                      Skywars.SetChestType(SWchestType.OVERPOWERED);
                                      player.closeInventory();
                                  }
                              }
                          }
                      }
                  }
              }
        }
     
  10. JordyPwner

    JordyPwner Member

    Joined:
    Apr 28, 2015
    Messages:
    488
    Likes Received:
    99
    Trophy Points:
    28
    Gender:
    Male
    Occupation:
    <== Uhm?
    Location:
    Cybertron
    Woops made a little mistake :p

    Check if inventory isnt null before getting the name.
     
  11. thekillerguy

    thekillerguy Member

    Joined:
    May 30, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    3
    Gender:
    Male
    @JordyPwner ok thanks but i don't understand what you mean i only want a plugin like cubecraft for skywars with basic op and normal