-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
SubServers.Bungee/src/net/ME1312/SubServers/Bungee/Event/SubNetworkLoginEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package net.ME1312.SubServers.Bungee.Event; | ||
|
||
import net.ME1312.Galaxi.Library.Util; | ||
import net.ME1312.SubData.Server.DataClient; | ||
import net.ME1312.SubData.Server.DataServer; | ||
import net.ME1312.SubServers.Bungee.Library.SubEvent; | ||
import net.md_5.bungee.api.plugin.Cancellable; | ||
import net.md_5.bungee.api.plugin.Event; | ||
|
||
/** | ||
* SubData Network Login Event | ||
*/ | ||
public class SubNetworkLoginEvent extends Event implements SubEvent { | ||
private DataServer network; | ||
private DataClient client; | ||
|
||
/** | ||
* SubData Network Login Event | ||
*/ | ||
public SubNetworkLoginEvent(DataServer network, DataClient client) { | ||
if (Util.isNull(network, client)) throw new NullPointerException(); | ||
this.network = network; | ||
this.client = client; | ||
} | ||
|
||
/** | ||
* Get the network the client is connected to | ||
* | ||
* @return SubData Network | ||
*/ | ||
public DataServer getNetwork() { | ||
return network; | ||
} | ||
|
||
/** | ||
* Get the connecting client | ||
* | ||
* @return Client | ||
*/ | ||
public DataClient getClient() { | ||
return client; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters