/src/SignCasino.java
https://github.com/darkdiplomat/SignCasino · Java · 74 lines · 46 code · 8 blank · 20 comment · 6 complexity · 2ba5044f3a178b62b07e0bc065a1ba95 MD5 · raw file
- import java.util.logging.Logger;
-
- /**
- * SignCasino v1.x
- * Copyright (C) 2012 Visual Illusions Entertainment
- * @author darkdiplomat <darkdiplomat@visualillusionsent.net>
- *
- * This file is part of SignCasino
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/copyleft/gpl.html.
- */
-
- public class SignCasino extends Plugin{
- Logger log = Logger.getLogger("Minecraft");
- String name = "SignCasino";
- String version = "1.0.2";
- String author = "darkdiplomat";
-
- SCData SCD;
- SCCraps SCC;
- SCSlotMachine SCSM;
- SCBlackJack SCBJ;
- SCBaccarat SCB;
- SCListener SCL;
-
-
- public void enable(){
- this.
-
- log.info("[SignCasino] Version "+version+" by darkdiplomat enabled!");
- }
-
- public void disable(){
- if(SCD.dCo){
- etc.getInstance().removeCommand("/scshare");
- }
- else if(SCD.item){
- etc.getInstance().removeCommand("/scchest");
- }
- log.info("[SignCasino] Version "+version+" disabled!");
- }
-
- public void initialize(){
- SCD = new SCData(this);
- SCSM = new SCSlotMachine(this);
- SCC = new SCCraps(this);
- SCBJ = new SCBlackJack(this);
- SCB = new SCBaccarat(this);
- SCL = new SCListener(this);
- if(SCD.dCo){
- etc.getInstance().addCommand("/scshare", " <jointaccountname> - then left click sign to set shared account");
- }
- else if(SCD.item){
- etc.getInstance().addCommand("/scchest", " left click sign then left click a chest set a chest for the sign");
- }
- etc.getLoader().addListener(PluginLoader.Hook.COMMAND, SCL, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addListener(PluginLoader.Hook.BLOCK_RIGHTCLICKED, SCL, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addListener(PluginLoader.Hook.SIGN_CHANGE, SCL, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addListener(PluginLoader.Hook.BLOCK_DESTROYED, SCL, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addListener(PluginLoader.Hook.BLOCK_BROKEN, SCL, this, PluginListener.Priority.MEDIUM);
- etc.getLoader().addListener(PluginLoader.Hook.PLAYER_MOVE, SCL, this, PluginListener.Priority.MEDIUM);
- }
- }