Haha thats a good idea to you are welcome to use my code as a template, just remember to give me credit when you submit the plugin
Unless they give you permission, which i am, and since it is a different plugin (just using the same core code) it should be fine, I only require you give me credit
Well it don't matter anyway because I can't code php and I just had a go at it. I crashed the server every time.
Good plugin! Suggestion, though: We can place signs that says: Line 1: *no text* Line 2: Giveaway starts in Line 3: *blah* hours, *blah* mins., *blah* secs. Line 4: *no text* and we can edit the time when the giveaway starts. Thanks!
DarkN3ss updated Giveaway with a new update entry: Crash bug fix Read the rest of this update entry...
Almost, you are using mt_rand where i am using rand because I find it works slightly better with this situation, and its not realy copying since its the cleanest way to get a random player. Here are the two methouds Yours: public function lol() { $path =$this->api->plugin->configPath($this); $RIA =$this->api->player->online(); if(count($RIA) >2) { $RIN =mt_rand(1,count($RIA)) -1; $randLOL =$RIA[$RIN]; $this->api->chat->broadcast("<" .$randLOL ."> LOL");} else { return "Not enough players online.";}} And Mine: public function randPlayer() { $RIA =$this->api->player->online(); $RIN =rand(1,count($RIA)) -1; $randomPlayer =$RIA[$RIN]; return $randomPlayer; } So as you can see there is quite a diffrence
I wasn't asking you. It is still nearly identical to RandomItem. I used some of RandomItem's code in RandomLOL.