()
| 63 | } |
| 64 | |
| 65 | public void reset() { |
| 66 | TempData newData = new TempData(this.player); |
| 67 | |
| 68 | if (spectate()) this.player.team(this.spectate); |
| 69 | this.player.unit().health = this.player.unit().maxHealth; |
| 70 | this.lastUnit = newData.lastUnit; |
| 71 | this.msgData.removeTarget(); |
| 72 | this.spectate = newData.spectate; |
| 73 | this.effect = newData.effect; |
| 74 | this.hue = newData.hue; |
| 75 | this.votedVNW = newData.votedVNW; |
| 76 | this.votedRTV = newData.votedRTV; |
| 77 | this.rainbowed = newData.rainbowed; |
| 78 | this.hasEffect = newData.hasEffect; |
| 79 | this.isMuted = newData.isMuted; |
| 80 | this.inGodmode = newData.inGodmode; |
| 81 | this.isCreator = newData.isCreator; |
| 82 | } |
| 83 | |
| 84 | public static TempData getByName(String name) { |
| 85 | return find(p -> p.player.name.equals(name)); |
no test coverage detected