PocketWarriors / SkywarsPe

SkyWars plugin for PocketMine-MP 1.4 servers. MCPE 0.10.x
https://github.com/PocketWarriors/SkywarsPe
Other
24 stars 15 forks source link

Usage Message? #14

Open kinect3000 opened 9 years ago

kinect3000 commented 9 years ago

It doesn't say "Usage: /skywars < play | exit >" when I do "/skywars" I get -- 06:48:38 [CRITICAL] Unhandled exception executing command 'skywars' in skywars: Undefined offset: 0 06:48:38 [NOTICE] ArrayOutOfBoundsException: "Undefined offset: 0" (E_NOTICE) in "/SkywarsPe-master/src/SkyWarsPE/Main" at line 71 -- only get the Usage message by "/skywars help"

Wantedkillerss commented 9 years ago

The code doesn't actually work u wanna fix lol

kinect3000 commented 9 years ago

i did some research and found out how to fix the error. Just add -- $new_array = array('1'); -- at line 71 and move everything else down. (This just makes sure the error doesn't appear, but when executed, it will be an "Unknown" command. http://stackoverflow.com/questions/6549561/notice-undefined-offset-0-in