1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Sound Event Packet error

Discussion in 'Plugin Help' started by Lorak9904, May 8, 2017.

  1. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    Hi, i saw on one server song automatically played by note blocks and i thought about the same thing on my server. Somewhere i found plugin, but it only plays one sound and gives error in console like this:

    [Server thread/CRITICAL]: Could not execute task ZMusicBox\MusicPlayer: Class pocketmine\network\protocol\LevelSoundEventPacket not found
    [22:22:12] [Server thread/CRITICAL]: ClassNotFoundException: "Class pocketmine\network\protocol\LevelSoundEventPacket not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    This is because of the mcpe protocol path changes. All that should need changed is the path for use statements that use mcpe protocol classes.

    The new path is: pocketmine\network\mcpe\protocol\LevelSoundEventPacket.
     
    HimbeersaftLP likes this.
  3. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Note Block still doesn't implemented yet?
     
  4. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    So i only need to add this use pocketmine\network\mcpe\protocol\Level...?
     
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You need to replace the current path to the correct one.
     
  6. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    But im using old pocketmine - mp for version. 0.15.x... So should i do that still...?
     
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    how old are we talking here? If your pocketmine version isn't API 3, then you might not have to.
     
  8. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Try it first, then see? It's not a drastic change anyway.
     
  9. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    API 2.0.0
    Still the same error :
    Code:
    Server thread/CRITICAL]: Could not execute task ZMusicBox\MusicPlayer: Class pocketmine\network\mcpe\protocol\LevelSoundEventPacket not found
    [14:06:47] [Server thread/CRITICAL]: ClassNotFoundException: "Class pocketmine\network\mcpe\protocol\LevelSoundEventPacket not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144
    
     
    Last edited: May 9, 2017
  10. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    What is the plugin's plugin.yml file?
     
  11. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    Code:
    name: ZMusicBox
    version: 2.5.0
    api: [1.0.0]
    author: Zzm
    description: Music~~
    main: ZMusicBox\ZMusicBox
    
    commands:
     music:
      permission: ZMusicBox.music
      description: ZMusicBox's main command
      usage: /music <Next>
    
    permissions:
     ZMusicBox:
      default: op
      description: ZMusicBox Commands
      children:
         ZMusicBox.music:
          default: op
          description: ZMusicBox Commands
       
     
  12. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    The API is too old. For that version of PocketMine, it should be 2.0.0.
     
  13. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You can't get both issues unless you are using a version of PocketMine from before this commit. Please update if you can.
     
    HimbeersaftLP likes this.
  14. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    What can I do now...? Changing just the number wont solve this problem... Right?
     
  15. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Last edited: May 9, 2017
    HimbeersaftLP and corytortoise like this.
  16. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    So i have to change my pocketmine-mp on the newest...? Sorry but i have no any idea about this stuff...
     
  17. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Okay, first, what version of Minecraft are you using?
     
  18. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You don't have to update. You just won't be able to use the plugin.
     
  19. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    0.15.4/0.15.X
    Cant i edit something...?
     
  20. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Why don't you update to the latest version? There have been many features added since 0.15
    Also, is your PocketMine API 2.0.0 or 2.1.0 ?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.