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

[New API] Question about plugin

Comments in 'Plugin Development' started by Hiddenfootball, Jul 21, 2014.

  1. Hiddenfootball
    Offline

    Hiddenfootball New Member

    Joined:
    Jul 21, 2014
    Posts:
    15
    Minecraft User:
    Hiddenfootball
    Ok, I can. I studying what PEMap and Topic are saying right now...
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $c5 $sender->getX(), $sender->getY(), $sender->getZ();
    wrong syntax. These are 3 values, and learn PHP and you would know that a variable stores a value. Also, $player->teleport() arg0 should be instance of Vector3.
    Dutok likes this.
  3. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    Wait how will this works without configs?
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What? You don't need a config unless you want to save data after reloading.
  5. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    Yeah but you save the position that the pods are in and the world
  6. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    you use arrays for small amount of date , you use configs for big amount of date , you use SQLite3 and MySQL for HUGE amount of date
    Hiddenfootball and LDX like this.
  7. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    Oh OK but how about api 12 I saw some plugins save 4 letters using configs
  8. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    the good thing about coding that you are free to choose your style of coding ;)
    Dutok, PEMapModder and Hiddenfootball like this.
  9. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    Dats true
  10. Hiddenfootball
    Offline

    Hiddenfootball New Member

    Joined:
    Jul 21, 2014
    Posts:
    15
    Minecraft User:
    Hiddenfootball
    So that should be a array?
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    So if you save a large amount of data per player, better save one file per player.
  12. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    in addition that setting up SQLite3 database is not easy as it sounds , so it is recommended to use configs instead or if you have like 30 lines to save use arrays
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    If you save per player, you never know how large it can be.
  14. Hiddenfootball
    Offline

    Hiddenfootball New Member

    Joined:
    Jul 21, 2014
    Posts:
    15
    Minecraft User:
    Hiddenfootball
    A bit off topic...
  15. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    OK so another things 1 how do you disable the player from the bypass list
    2 what happens if both players go in the same pod you should add something like this pod is full try pod 7 . 6 or 4 which are available
  16. Hiddenfootball
    Offline

    Hiddenfootball New Member

    Joined:
    Jul 21, 2014
    Posts:
    15
    Minecraft User:
    Hiddenfootball
    Ok, I still need to change the bypass list to a array, and I'll add a remove feature, and I'll figure something out for players more than 8. Maybe just cancels the teleportation event?
  17. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    This API check if that pos is full // ?
    If it is full
    $event->setCancelled(true);
  18. Hiddenfootball
    Offline

    Hiddenfootball New Member

    Joined:
    Jul 21, 2014
    Posts:
    15
    Minecraft User:
    Hiddenfootball
    Yes your right, but I'm still debating since with the current system it would only be cancelled for the 9th player
  19. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    no just check if that pod is full if it is cancelle the event
  20. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    This plugin doesn't freeze the player, and checking if the "pod" was full would be a whole separate thing.

Share This Page

Advertisement