Respawning problem

Discussion in 'Plugin Development' started by girardcome, Feb 4, 2014.

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

    girardcome

    Hey i want a player who get the permission : "hungergames.respawn" to respawn before 5 minutes after the game started but i do not no how to do it i made that
    Code:java
    1. @EventHandler
    2. public void onPlayerRespawn(PlayerDeathEvent event)
    3. {
    4. final Player p = event.getEntity();
    5. if(this.hg.Gameplay.isGameStarted()) {
    6. Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.hg, new Runnable() {
    7.  
    8. @Override
    9. public void run() {
    10. if(p.hasPermission("hungergames.respawn"))
    11. p.setHealth(20.0D);
    12. Location loc = p.getLocation();
    13. Random rand = new Random();
    14. loc.setX(rand.nextInt(1001)-500);
    15. loc.setZ(rand.nextInt(1001)-500);
    16. loc.setY(p.getWorld().getHighestBlockYAt(loc));
    17. p.teleport(loc);
    18. }
    19.  
    20. }, 20*60*5);
    21. }
    22. }
     
  2. Offline

    SwiftSwamp

    I took my plugins down because there's no more support and it's not public anymore., I never said you could use the code nor did the license when it was public. My code is not open source.
     
  3. Offline

    Maurdekye

    SwiftSwamp Did he explicitly use any code from your plugin? I don't think this small snippet here is anywhere near enough to demonstrate that he stole code from you. Also, you're not the only, nor the first to make a hunger games plugin.
     
  4. Offline

    SwiftSwamp

    Actually, him linking to me this post from Skype saying he's trying to use my plugin, etc...is enough. I can provide screen shots of that if you would like.
     
  5. Offline

    Maurdekye

    SwiftSwamp Oh. Well that changes things. In that case, if he has your plugin, then he wouldn't have been able to get it without your permission in some way, so it's still kind of your fault.
     
Thread Status:
Not open for further replies.

Share This Page