Add per-class option 'price'.
This commit is contained in:
@@ -436,6 +436,11 @@ public class ArenaImpl implements Arena
|
||||
}
|
||||
assignClassPermissions(p);
|
||||
arenaPlayerMap.get(p).resetStats();
|
||||
|
||||
double price = arenaPlayerMap.get(p).getArenaClass().getPrice();
|
||||
if (price > 0D) {
|
||||
plugin.takeMoney(p, price);
|
||||
}
|
||||
|
||||
scoreboard.addPlayer(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user