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

how to finish a game when there is one player on a world

Comments in 'Plugin Development' started by Ritch, Mar 16, 2016.

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

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    how to finish a game when there is one player on a world teleported directly to spawn. With PlayerDeathEvent / PlayerQuitEvent code Please .. ?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What is "finish a game"?
  3. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    Stop asking us for a code, we can give you idea, but not code! We won't make plugin for you....
  4. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    you can use playerquitevent and death event to check count of players in the world if it is < 2 stop the game
  5. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    Actually, they can ask for code. THats a way we as a community , help eachother out. Some people actually start plugin making after a bit of help, and thats exactly what the "PLUGIN DEVELOPMENT" part gives. Help to people.
    I would like to draw your attention to this too. --> https://forums.pocketmine.net/threads/new-section-guidelines.15780/

    You are beiing unhelpful, so......
    Ritch likes this.
  6. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    You know Plugin Développement or You are a n*** ?
    And You not help me ... Please stop message...
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The problem is, you want to "finish a game", but we have no idea what a "game" is in your plugin, because in PocketMine there is originally no such concept called a "game".
  8. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Need code Help......
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    We can't because nobody else than you knows how to finish a game. This is the 3rd time I am saying this in this thread. For every different plugin that handles games, there is a different way of finishing a game. It is a problem of your own API.
  10. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Stop spamm !!!!
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This is not spam. I am explaining to you that if you do not provide more information, nobody can help you.
  12. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    :( 1 players in world = finish game code. Please ?
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    And I am telling you for the 4th time, "finish game code" is different for every plugin. How do we know what a "game" is? You define what a "game" is. Like, releasing resources, etc. How could we know if you don't tell us?
    ImagicalGamer and Survingo like this.
  14. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    * < 3, because onQuit event the player isnt removed from the player list
  15. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Need code plz ????
Thread Status:
Not open for further replies.

Share This Page

Advertisement