Sounds

Discussion in 'Plugin Development' started by Xogos1997, Oct 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Xogos1997

    hi, can i play sound from web site url?

    Example
    Code:
    player.PlaySound("http://www.bla.cz/Sound.mp4");
     
  2. Offline

    CraftCreeper6

    Xogos1997
    Texture packs I believe can do this.
     
  3. Offline

    Xogos1997

    CraftCreeper6 yes but music can have 300 mb. and download this texture pack is bad :D
     
  4. Offline

    Zupsub

    No, you can only play ingame sounds to players.
    However you can change the ingame sounds with resourcepacks.
    You can also send a resourcepack to a player, however they might not use it.
     
  5. Offline

    Xogos1997

  6. Offline

    CheesyFreezy

    make a server resourcepack with the custom sounds you want and make the settings (in server.properties) that the server is using a server resourcepack. That means that whenever a player joins your server he/she will automaticcaly download + use that resourcepack you put in the server.properties

    Code:java
    1. if(CheesyFreezy.helped == true) {
    2. isSolved = true;
    3.  
    4. like++;
    5. }

    :D
     
  7. Offline

    Xogos1997

    CheesyFreezy no i know code. but sound have big mb. and my texture pack now have 10 mb + song = 30 mb.
    Code:
    player.playSound(player.getLocation(), "minecraft/resources/newsound/Sound.OGG", 1,5);    
     
  8. Offline

    fireblast709

    Even if you magically could manage to do it without resource packs, the client would still have to download those songs
     
  9. Offline

    CheesyFreezy

    you can't import custom sounds in a plugin, but the only option i can think about is using a resourcepack. But maybe an idea for the new craftbukkit API, so you can import custom sounds :p
     
  10. Offline

    teej107

    CheesyFreezy uuh....
     
Thread Status:
Not open for further replies.

Share This Page