Ejemplo n.º 1
0
 protected ACPlayer(final String name) {
   this.name = name;
   final int prime = 41;
   int result = 7;
   result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
   hashCode = result;
   handler = ACPluginManager.getServer().getPlayer(this.name);
 }
Ejemplo n.º 2
0
 /** @param isOnline the isOnline to set */
 void setOnline(final boolean isOnline) {
   this.online = isOnline;
   if (!this.online) {
     this.handler = null;
   } else if (handler == null) {
     this.handler = ACPluginManager.getServer().getPlayer(this.name);
   }
 }