forked from External/mage
Done Issue 16: Games played counter plugin.
This commit is contained in:
parent
a2561515a3
commit
b143a5a44d
14 changed files with 342 additions and 32 deletions
|
|
@ -35,6 +35,7 @@ import java.util.logging.Logger;
|
|||
import javax.swing.JOptionPane;
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.chat.ChatPanel;
|
||||
import mage.client.plugins.impl.Plugins;
|
||||
import mage.interfaces.callback.CallbackClient;
|
||||
import mage.interfaces.callback.ClientCallback;
|
||||
import mage.util.Logging;
|
||||
|
|
@ -169,6 +170,10 @@ public class Client implements CallbackClient {
|
|||
catch (Exception ex) {
|
||||
handleException(ex);
|
||||
}
|
||||
|
||||
if (Plugins.getInstance().isCounterPluginLoaded()) {
|
||||
Plugins.getInstance().addGamesPlayed();
|
||||
}
|
||||
}
|
||||
|
||||
protected void watchGame(UUID gameId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue