[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


    PZFun - Different commands
    Version: v0.1

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

    To Do:
    • /Spawn Creeper [Number]
    • /Kill All
    • /Tp all
    • /Kick all
    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


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


    Cleaned it up a bit,

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


    if you want to declair a array varriable you would use:
    Player[] players;
    instead of:
    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