Arenas v.s Multi-Servers

Discussion in 'Plugin Development' started by billman555555, Sep 22, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    billman555555

    Hey,
    I making MULTIPLE minigame plugins for my server and i need to know,
    whats better:
    A. 1 Server instance per Map per Game.
    B. 1 Server per Game with Arenas.

    Thanks.

    BTW: Servers are Blade servers with 2x Intel Xeon 6 core and 16 GB (up to 716GB) RAM.
     
  2. Wait... This is a bug?
     
  3. Offline

    Technius

    billman555555
    One server per game type, with multiple arenas and maps on that server.

    For example, Game A is hosted on Server A, and it has 10 maps. Game B is hosted on Server B and it has 7 maps.
     
  4. Offline

    billman555555

    Technius
    Thanks, also i have a problem with my kit selector Inventory.
    Code:java
    1. @EventHandler
    2. public void onItemSelect(InventoryClickEvent event) {
    3. Player player = (Player) event.getWhoClicked();
    4. Inventory inventory = player.getInventory();
    5. if (event.getInventory().getTitle() == "Choose a Kit") {
    6. if (event.getSlot() == 0) {
    7. inventory.addItem(new ItemStack(Material.BREAD, 2));
    8. }
    9. if (event.getSlot() == 1) {
    10. inventory.addItem(new ItemStack(Material.BOW, 1));
    11. inventory.addItem(new ItemStack(Material.ARROW, 4));
    12. }
    13. if (event.getSlot() == 2) {
    14. inventory.addItem(new ItemStack(Material.POTION, 1, (short)8229));
    15. inventory.addItem(new ItemStack(Material.POTION, 2, (short)16396));
    16. }
    17. if (event.getSlot() == 3) {
    18. inventory.addItem(new ItemStack(Material.WOOD_SWORD, 1));
    19. }
    20. inventory.removeItem(new ItemStack(Material.DIAMOND));
    21. event.setCancelled(true);
    22. player.closeInventory();
    23. }
    24. }

    But when i select a slot in ANY inventory while the selector Inevntory is open it gives you the items.
     
  5. Offline

    xTrollxDudex

    billman555555
    I'm not sure those are the correct slot numbers and you need to check if the player's inventory contains diamonds or else it will give you a NPE
     
  6. Offline

    billman555555

    ok thanks
     
Thread Status:
Not open for further replies.

Share This Page