Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 23 2018 11:06
    dktapps labeled #2317
  • Jul 23 2018 11:06
    dktapps labeled #2317
  • Jul 23 2018 09:35
    dktapps labeled #2319
  • Jul 23 2018 09:35
    dktapps closed #2319
  • Jul 23 2018 09:35
    dktapps commented #2319
  • Jul 23 2018 09:32
    MSG100TC edited #2319
  • Jul 23 2018 09:31
    MSG100TC opened #2319
  • Jul 22 2018 18:54
    dktapps labeled #2318
  • Jul 22 2018 18:54
    dktapps commented #2318
  • Jul 22 2018 18:18
    dktapps edited #2318
  • Jul 22 2018 16:38
    dktapps unlabeled #2303
  • Jul 22 2018 16:38
    dktapps labeled #2303
  • Jul 22 2018 16:38
    dktapps closed #2303
  • Jul 22 2018 16:38
    dktapps commented #2303
  • Jul 22 2018 16:35
    dktapps synchronize #2318
  • Jul 22 2018 16:35

    dktapps on disconnect-rework

    fixed crash on timeout (compare)

  • Jul 22 2018 16:20
    dktapps labeled #2318
  • Jul 22 2018 16:20
    dktapps commented #2318
  • Jul 22 2018 14:07
    dktapps commented #2318
  • Jul 22 2018 14:01
    dktapps synchronize #2318
sero583
@sero583
And if something extends another class, then he can look in the class, which is extending the one, he is using, for the other features.
SOFe
@SOF3
more importantly
documentation provides very shallow information
most important information needs reading code
for example, does Server::getOnlinePlayers() return the Player who is logging in in PlayerLoginEvent? There is nowhere that this should be documented, yet this should be known.
MΔJΩRHΔRD
@MajorPlayz
@SOF3 i have PhpStorm lol
:P
@SOF3 figured out co ords
sero583
@sero583
The docs are giving enough info (I mean)
SOFe
@SOF3
Not if you want to be more advanced using the provided functions properly, like, in the correct way.
Dylan T.
@dktapps
PocketMine/PocketMine-MP@3f27988
SOFe
@SOF3
This message was deleted
Addison
@Addison118
@SOF3 :thumbsup:
Dylan T.
@dktapps
lol
MΔJΩRHΔRD
@MajorPlayz
Can I make a Plugin that works with a Mod? (BlockLauncher)
SOFe
@SOF3
yes. but you probably have to find your own way to identify your mod without crashing normal clients or servers.
MΔJΩRHΔRD
@MajorPlayz
Oh ok
MΔJΩRHΔRD
@MajorPlayz
How do I get a list of all online players and select some who are 'staff' from a staff.yml file?
I want this to happen onPlayerJoin
Or whatever
Tim (robske_110)
@robske110
$yourfuckinserverObjectInstanceBlah->getOnlinePlayers();
MΔJΩRHΔRD
@MajorPlayz
Ok thx lol
Addison
@Addison118
@SOF3 Ive got something to
SOFe
@SOF3
@Addison118 ?
MΔJΩRHΔRD
@MajorPlayz
How do I use onBlockBreakEvent?
MΔJΩRHΔRD
@MajorPlayz
What do I use to detect when a block is broken and then to detect if that block is a MonsterSpawner ?
Anybody?
Anybody?
jasonwynn10
@jasonwynn10
how about a block break event?
SOFe
@SOF3
There is nothing called onBlockBreakEvent.
MΔJΩRHΔRD
@MajorPlayz
How do I do it???
SOFe
@SOF3
Handle pocketmine\event\block\BlockBreakEvent
you don't need explanation how to make an event handler, right?
MΔJΩRHΔRD
@MajorPlayz
What does that mean
Yes lol
Ill google it
SOFe
@SOF3
and then
get the block from the event
then get the block id from the block
MΔJΩRHΔRD
@MajorPlayz
Ok
SOFe
@SOF3
then check if the block id is identical to the block id of monster spawner using constants from the block class
MΔJΩRHΔRD
@MajorPlayz
The class is MonsterSpawner
Cld u write a snippet for that cos I have no idea where to start lel pls
SOFe
@SOF3
No
don't use the class
use the constant from Block (or BlockIds).
MΔJΩRHΔRD
@MajorPlayz
OH ok
cld u write a quick snippet pls
SOFe
@SOF3
no
for what?