Jump to content
  • 0

[request] Java question help me please


Question

Posted

how i can put a X level of earthquake when this occurs:

        case 5:

        Announcements.getInstance().announceToAll("" + this.getName()+ "  ULTRAKILL!! [5]");

        sendMessage("Oo 5,aprovecha que aun estas a salvo");

        break;

and other level of earthquake for other, for example this:

        case 10:

        Announcements.getInstance().announceToAll("" + this.getName()+ " MOoOo0o0oONSTER KILL!! [10]");

        sendMessage("10,Ya llevas 10?? parece que esto solo es el principio.");

        break;

 

 

I search a code for assign the level of earthquake for PvP kills in java.

2 answers to this question

Recommended Posts

  • 0
Posted

dark5 although Leeroy is right, here is what you need:

sendPacket(new Earthquake(getX(), getY(), getZ(), 5, 10));

(X,Y,Z, intensity, duration).

Please follow the rules next time.

 

Thread Closed.

 

Reason:

Answer has been Provided;

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..