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

SendMessage to 4 Random Players in server

Comments in 'Plugin Development' started by PmServer, Oct 1, 2016.

  1. PmServer
    Offline

    PmServer New Member

    Joined:
    May 7, 2015
    Posts:
    53
    Minecraft User:
    PmServer
    thats my code
    PHP:
    $boomsrand $this->plugin->getAllCools()[array_rand($this->plugin->getAllCools() , 2)];
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Is $this->plugin instance of PluginBase?
    btw, what is getAllCools()?
  3. applqpak
    Offline

    applqpak Active Member Plugin Developer

    Joined:
    Dec 16, 2015
    Posts:
    284
    Plugins:
    1
    Minecraft User:
    applqpak
    For gods sakes, please learn PHP before attempting to create a plugin, you OBVIOUSLY do NOT know PHP.

Share This Page

Advertisement