1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

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

Addon MundoSK 1.8.5

1.8.8 - 1.12 | Packets, WebSockets, World Border/Management/Custom Generation, and more!

  1. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Good evening,
    I've just passed my server to multi version and I'm creating a nbt tag converter for items to fix a display problem for versions > 1.8, unfortunately
    "on packet event play_client_client_command:" does not work for versions >1.8
     
  2. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
    MundoSK version, ProtocolLib version?
    When you say it doesn’t work, do you mean it gives an error on reload, it gives a console error, or it’s never called?
     
  3. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    My protocolib version is 4.3.0, no error and works when a client 1.8 opens its inventory it is simply not called when a client >1.8 opens its inventory


    Code (Skript):
    1. on packet event play_client_client_command:
    2.     send "test"
    3.     if mc version of player > 47:
    4.         loop all items in player's inventory:
    5.             if loop-item is iron boots, diamond boots, golden boots, chain boots or leather boots:
    6.                 add "{slot:feet}" to nbt of loop-item
    7.             else if loop-item is iron chestplate, diamond chestplate, golden chestplate, chain chestplate or leather chestplate:
    8.                 add "{slot:chest}" to nbt of loop-item
    9.             else if loop-item is iron leggings, diamond leggings, golden leggings, chain leggings or leather leggings:
    10.                 add "{slot:legs}" to nbt of loop-item
    11.             else if loop-item is iron helmet, diamond helmet, golden helmet, chain helmet or leather helmet:
    12.                 add "{slot:head}" to nbt of loop-item
    13.             else:
    14.                 add "{slot:mainhand}" to nbt of loop-item
     
  4. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
    Are other packets working properly with all versions?
     
  5. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    I've tested a few other packages and yes, I'm going to test some others
    I get an error in the console

    Edit: Use_Item does not work
    Code (Skript):
    1. [ProtocolLib] [PacketFilterManager] [MundoSK] Unsupported client packet in current Minecraft version: USE_ITEM[PLAY, CLIENT, 31, classNames: [PacketPlayInUseItem] (unregistered)]
     
  6. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
    So to clarify, some packets do work for all versions? Can you give examples of packets that do work in all versions? Are there other packets that give console errors besides use_item?
     
  7. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Good morning. Hello,
    Here is a list of the packages I tested that work on all versions
    • play_client_tab_complete
    • play_client_chat
    • play_client_window_click
    • play_client_close_window
    • play_client_look
    • play_client_block_dig
    • play_client_entity_action
    • play_client_block_place
    With error:
    • play_client_use_item
    Does not work, error-free:
    • play_client_client_command
    • play_client_flying
    I've only tested these packages, I'll give you a complete list
    --- Double Post Merged, Jan 11, 2018, Original Post Date: Jan 9, 2018 ---
    I noticed that mundosk prevent skinsrestorer from working ^^
     
  8. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
    In MundoSK’s config, there is an option called `enable_custom_skin_and_tablist`. If you set this to false, SkinRestorer should work (you need to restart your server for the config option to work). MundoSK also has its own skin syntaxes if you want to try them.
     
    • Like Like x 1
  9. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    Super son works :emoji_wink:
    Have you found the problem for "PLAY_CLIENT_CLIENT_CLIENT_COMMAND"?
     
  10. xbxy

    xbxy Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    170
    Likes Received:
    8
    How do you make a package to smooth the player's 'pitch' and 'yaw'?
    Can you provide an example?
     
  11. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
    After some testing, here’s what I’ve found: In my 1.12 test server, play_client_client_command is not triggered by inventory opening, but is triggered on respawn. To me it seems that clients > 1.8 simply no longer send the packet on inventory open. I wasn’t able to trigger play_client_fly at all in 1.12, but I would assume it is a similar situation. From the warning for play_client_use_item, it seems that it’s a packet that isn’t present in 1.8, so that’s why the warning appears.
     
  12. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,234
    Likes Received:
    172
    Medals:
    The play_client_client_command used to trigger when a player opens their inventory to detect if they have the inventory open achievement, but as of 1.12, achievements have been replaced by advancements, therefore this ClientCommand action has been removed in favor of the new system.

    The play_client_flying packet should be working as intended, dunno what's happening there.

    The play_client_use_item was added in 15w31a (1.9) so that's right.
     
    • Like Like x 1
  13. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
  14. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    That's what I understand, it's 1.12 that breaks everything... there's no way to detect when a player opens an player inventory x)
    Thanks for your help and bravo for the update, I wanted to ask you it is possible to communicate from php to the server with websockets?
     
    • Like Like x 1
  15. Tlatoani

    Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    151
    Likes Received:
    89
    Medals:
    Yes, you can use websockets to communicate with PHP from the server. You’ll need to use a library on the PHP side since PHP doesn’t have websockets built-in, but that isn’t too hard to do.
     
  16. Spartan9802

    Spartan9802 Member

    Joined:
    Jan 26, 2017
    Messages:
    158
    Likes Received:
    8
    All right great, it's true that for the moment I'm just wondering but I created a web page that allows custom skins uploads on https://mineskin.org/ and then use Mundosk to offer my crack players skins on the server, are the websocket protected by a password?
    --- Double Post Merged, Jan 14, 2018, Original Post Date: Jan 14, 2018 ---
    I found an answer to my question in doc ^^ thanks :emoji_slight_smile:
     
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Tlatoani updated MundoSK with a new update entry:

    MundoSK 1.8.2 - Packet Info Aliases

    Read the rest of this update entry...
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Tlatoani updated MundoSK with a new update entry:

    MundoSK 1.8.3 - Tablist Latency

    Read the rest of this update entry...
     
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Tlatoani updated MundoSK with a new update entry:

    MundoSK 1.8.4 - Per-Player Nametags

    Read the rest of this update entry...
     
  20. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    290
    Likes Received:
    8
    why
    Code (Skript):
    1. hide loop-player in the tablist of player
    is not working?
    or it is changed?
     
Loading...