Changed DSignType to DSign

Signed-off-by: Grafe <flingelfrank@hotmail.com>
This commit is contained in:
Grafe 2013-03-21 17:08:00 +01:00
parent e9bad81bb5
commit 44b20fce67
17 changed files with 22 additions and 22 deletions

View File

@ -39,7 +39,7 @@ import com.dre.dungeonsxl.listener.EntityListener;
import com.dre.dungeonsxl.listener.HangingListener;
import com.dre.dungeonsxl.listener.PlayerListener;
import com.dre.dungeonsxl.listener.WorldListener;
import com.dre.dungeonsxl.signs.DSignTypeRoot;
import com.dre.dungeonsxl.signs.DSignRoot;
public class P extends JavaPlugin{
public static P p;
@ -83,7 +83,7 @@ public class P extends JavaPlugin{
new DCommandRoot();
//Init Signtypes
DSignTypeRoot.init();;
DSignRoot.init();;
//InitFolders
this.initFolders();

View File

@ -25,8 +25,8 @@ import org.bukkit.entity.Spider;
import com.dre.dungeonsxl.DConfig;
import com.dre.dungeonsxl.DPlayer;
import com.dre.dungeonsxl.P;
import com.dre.dungeonsxl.signs.DSignType;
import com.dre.dungeonsxl.signs.DSignTypeRoot;
import com.dre.dungeonsxl.signs.DSign;
import com.dre.dungeonsxl.signs.DSignRoot;
public class GameWorld {
private static P p=P.p;
@ -78,7 +78,7 @@ public class GameWorld {
Sign sign = (Sign) block.getState();
String[] lines=sign.getLines();
for(DSignType signType : DSignTypeRoot.get()){
for(DSign signType : DSignRoot.get()){
if(lines[0].equalsIgnoreCase("["+signType.name+"]")){
signType.onDungeonInit(sign, this);
}

View File

@ -5,7 +5,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.P;
import com.dre.dungeonsxl.game.GameWorld;
public abstract class DSignType {
public abstract class DSign {
public static P p = P.p;
public String name;

View File

@ -2,8 +2,8 @@ package com.dre.dungeonsxl.signs;
import java.util.concurrent.CopyOnWriteArrayList;
public class DSignTypeRoot {
private static CopyOnWriteArrayList<DSignType> signTypes = new CopyOnWriteArrayList<DSignType>();
public class DSignRoot {
private static CopyOnWriteArrayList<DSign> signTypes = new CopyOnWriteArrayList<DSign>();
//SignTypes
private static SIGNCheckpoint signCheckpoint = new SIGNCheckpoint();
@ -37,7 +37,7 @@ public class DSignTypeRoot {
signTypes.add(signStart);
}
public static CopyOnWriteArrayList<DSignType> get(){
public static CopyOnWriteArrayList<DSign> get(){
return signTypes;
}
}

View File

@ -5,7 +5,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameCheckpoint;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNCheckpoint extends DSignType{
public class SIGNCheckpoint extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -5,7 +5,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameChest;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNChest extends DSignType{
public class SIGNChest extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -4,7 +4,7 @@ import org.bukkit.Chunk;
import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNChunkUpdater extends DSignType{
public class SIGNChunkUpdater extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -8,7 +8,7 @@ import com.dre.dungeonsxl.DClass;
import com.dre.dungeonsxl.DGSign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNClasses extends DSignType{
public class SIGNClasses extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -4,7 +4,7 @@ import org.bukkit.ChatColor;
import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNEnd extends DSignType{
public class SIGNEnd extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -4,7 +4,7 @@ import org.bukkit.ChatColor;
import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNLeave extends DSignType{
public class SIGNLeave extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -3,7 +3,7 @@ package com.dre.dungeonsxl.signs;
import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNLobby extends DSignType{
public class SIGNLobby extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -4,7 +4,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
import com.dre.dungeonsxl.game.MobSpawner;
public class SIGNMob extends DSignType{
public class SIGNMob extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -5,7 +5,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameMessage;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNMsg extends DSignType{
public class SIGNMsg extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -5,7 +5,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GamePlaceableBlock;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNPlace extends DSignType{
public class SIGNPlace extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -4,7 +4,7 @@ import org.bukkit.ChatColor;
import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNReady extends DSignType{
public class SIGNReady extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -5,7 +5,7 @@ import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameMessage;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNSoundMsg extends DSignType{
public class SIGNSoundMsg extends DSign{
@Override
public boolean check(Sign sign) {

View File

@ -3,7 +3,7 @@ package com.dre.dungeonsxl.signs;
import org.bukkit.block.Sign;
import com.dre.dungeonsxl.game.GameWorld;
public class SIGNStart extends DSignType{
public class SIGNStart extends DSign{
@Override
public boolean check(Sign sign) {