KillReward

Status
This thread has been locked.
ReliableSite: Dedicated Servers

WeeSkilz

Developer | Indoor Enthusiast
Premium
Reputation
0
Posts
138
Reactions
80
Resources
0

Krizeh

Banned
Reputation
0
Posts
17
Reactions
2
Resources
0
I could code this in a minute. It's like 8 lines of code.

@EventHandler
public void onKill(PlayerDeathEvent e) {
if (e.getEntity().getKiller() instanceof Player) {
Main.econ.depositPlayer(e.getEntity().getKiller().getName(), 50.0D);
e.getEntity().getKiller().setLevel(e.getEntity().getKiller().getLevel() + 1);

}
}
 
Last edited:
Banned forever. Reason: Ban on other account (Multi-accounting)

WeeSkilz

Developer | Indoor Enthusiast
Premium
Reputation
0
Posts
138
Reactions
80
Resources
0
I could code this in a minute. It's like 8 lines of code.

@EventHandler
public void onKill(PlayerDeathEvent e) {
if (e.getEntity().getKiller() instanceof Player) {
Main.econ.depositPlayer(e.getEntity().getKiller().getName(), 50.0D);
e.getEntity().getKiller().setLevel(e.getEntity().getKiller().getLevel() + 1);

}
}

But you've not registered your economy.

Also the code is here: https://github.com/WeeSkilz/KillReward
 
Status
This thread has been locked.
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.