Advertisement
notjacob

SkPWrapper.java

Jan 4th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.56 KB | None | 0 0
  1. package skywars.notjacob.handlers;
  2.  
  3. public abstract class SkPWrapper implements SkywarsPlayer {
  4.     private playerHandler playerHandler;
  5.    
  6.     public void setElo(final float elo) {
  7.         playerHandler.setElo(elo, this.getPlayer());
  8.     }
  9.     public float getElo() {
  10.         return playerHandler.elo(this.getPlayer());
  11.     }
  12.     public float getKills() {
  13.         return playerHandler.kills(this.getPlayer());
  14.     }
  15.     public float getDeaths() {
  16.         return playerHandler.deaths(this.getPlayer());
  17.     }
  18.     public float getWins() {
  19.         return playerHandler.wins(this.getPlayer());
  20.     }
  21.     public float getLosses() {
  22.         return playerHandler.losses(this.getPlayer());
  23.     }
  24.     public boolean getIngame() {
  25.         return playerHandler.ingame(this.getPlayer());
  26.     }
  27.     public Island getIsland() {
  28.         return playerHandler.island(this.getPlayer());
  29.     }
  30.     public boolean getDead() {
  31.         return playerHandler.dead(this.getPlayer());
  32.     }
  33.    
  34.     public void setDead(final boolean dead) {
  35.         playerHandler.setDead(dead, this.getPlayer());
  36.     }
  37.     public void setWins(final float wins) {
  38.         playerHandler.setWins(wins, this.getPlayer());
  39.     }
  40.     public void setKills(final float kills) {
  41.         playerHandler.setKills(kills, this.getPlayer());
  42.     }
  43.     public void setDeaths(final float deaths) {
  44.         playerHandler.setDeaths(deaths, this.getPlayer());
  45.     }
  46.     public void setLosses(final float losses) {
  47.         playerHandler.setLosses(losses, this.getPlayer());
  48.     }
  49.     public void setIngame(final boolean ingame) {
  50.         playerHandler.setIngame(ingame, this.getPlayer());
  51.     }
  52.     public void setIsland(final int id) {
  53.         playerHandler.setIsland(id, this.getPlayer());
  54.     }
  55.    
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement