[FUN] PZFun - Fun commands

Discussion in 'WIP and Development Status' started by Partylizard, Apr 9, 2011.

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

    Partylizard

    PZFun - Different commands
    Version: v0.1

    Features:
    • Permission Support
    • Spawn Creepers
    • Kill everyone
    • Tp all
    • Kick all
    Download:
    Download PZFun
    Source Code

    To Do:
    • /Spawn Creeper [Number]
    • /Kill All
    • /Tp all
    • /Kick all
    Changelog:
    Version 0.1
    • Release

    I know how to do TP to player and TP player to you, the problem is I have no idea how to get all the people on the server to TP to you any ideas? Also whenever I /Goto I get this error:

    It works except it says Unknown Console command :/.

    One more thing, [SEVERE] Nag author: '<NoAuthorGiven>' of 'PZTeleport' about the following: onPlayerCommandPreprocess has been replaced with a new signature, (PlayerCommandPreprocessEvent). My name isn't in there for some reason and the "(PlayerCommandPreprocessEvent)"
     

    Attached Files:

    Last edited by a moderator: May 14, 2016
  2. Offline

    Raz

    Code:
    Player players[] = getServer().getOnlinePlayers();
    for(int i = 0; i < players.length; i++){
    players[i].teleport(location);
    }
    There's the code to TP all :)
    (If i'm not to tired to write code ATM and failed totally :p )
     
  3. Offline

    Gandalf

    Cleaned it up a bit,

    for(Player p:this.getServer().getOnlinePlayers())
    p.teleport(location);
     
  4. Offline

    Jucko13

    if you want to declair a array varriable you would use:
    Code:
    Player[] players;
    instead of:
    Code:
    Player players[];
    I readed on some java tutorials that you have to declare it as I typed it :p
    dont ask me why, but its just the way it is :p
     
Thread Status:
Not open for further replies.

Share This Page