I have a "Mod" here in a Minecraft, it is a sales bot, but it acts like a mod. A problem.
Below is the excerpt that it is about.
It is unlikely that Else should send a message to the player.
My problem: How can I not send a player to the player?
Would be nice if someone can read it out there and tell me!
LG
/ * 126 / bew player = ave.A (). H;
/ /
// private void buy (int acessable_money, String playername) {
/ * 129 / this.slot = Utils.getInventorySlotContainItem ((xo) this.player.bk);
/ * 130 / if (this.slot! = -1) {
/ * 131 / Main.debug ("Chest contain item");
/ * 132 / for (ItemInformation key: Main.buy.keySet ()) {
/ * 133 / Main.debug (key.mat.name () + "→" + (String) Main.buy. Get (key));
/ /}
/ * 135 / if (Main.buy.containsKey (Utils.stackToInfo ((zx) this.player.bk.a (). Get (this.slot {
/ * 136 / Main.debug ("Item has price");
/ * 137 / int price = Integer.valueOf ((String) Main.buy. Get (Utils.stackToInfo ((zx) this.player.bk.a (). Get (this.slot .intValue ();
/ * 138 / Main.debug ("Price:" + price);
/ * 139 / if (acessable_money> = price) {
/ * 140 / Main.debug ("Enough money");
/ * 141 / if ((Utils.getInventorySlotContainItemStack ((zx) this.player.bk.a (). Get (this.slot))> = 0) ||
/ * 142 / (this.player.bi.j ()> = 0)) {
/ * 143 / Main.debug ("Sneak: false");
/ * 144 / if (Main.buy.containsKey (Utils.stackToInfo ((zx) this.player.bk.a (). Get (this.slot {
/ * 145 / Main.debug ("Second item check was true");
/ * 146 / ItemInformation inf = Utils.stackToInfo ((zx) this.player.bk.a (). Get (this.slot));
/ * 147 / price = Integer.valueOf ((String) Main.buy. Get (inf)). IntValue ();
/ * 148 / Main.debug ("Second price check:" + price);
/ /
/ * 150 / ave.A (). C.a (this.player.bk.d, this.slot, 0, 1, this.player);
/ /
/ * 152 / Main.debug ("Getted item");
/ * 153 / dropActually ();
/ * 154 / Main.debug ("Closed inventory");
/ * 155 / Utils.pay (this.topay, price + "");
/ * 156 / Main.debug ("Payed money");
/ * 157 / Utils.log (playername + "sold one" + inf.display + "for" + price + "$!");
/ /} else {
/ * 159 / selectItem ();
/ * 160 / dropActually ();
/ /}
/ /} else {
/ * 163 / selectItem ();
/ * 164 / dropActually ();
/ /}
/ /} else {
/ * 167 / selectItem ();
/ * 168 / dropActually ();
/ /}
/ /} else {
/ * 171 / selectItem ();
/ * 172 / dropActually ();
/ /}
/ /} else {
/ * 175 / dropActually ();
Do you have the source code of the mod or is it open source? Because to add the message it would be easiest to recompile it. Otherwise you have to decompile it yourself (e.g. Via JD-GUI). It is also unclear what else you mean.
I mean something different for everyone else… I can define the text myself.
How can I decompile it?!
And I only received this Jar
Ok, and how do I send a message to the player now?