commit db9c34c9e1f4c2b37b2a18dd6ac2338b4600ade6 Author: pintu Date: Mon Apr 29 23:56:04 2019 +0200 Initial Commit, little bug fixes from the original code diff --git a/MultiArena-TheBridge/.classpath b/MultiArena-TheBridge/.classpath new file mode 100644 index 0000000..78d3ef7 --- /dev/null +++ b/MultiArena-TheBridge/.classpath @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/MultiArena-TheBridge/.project b/MultiArena-TheBridge/.project new file mode 100644 index 0000000..37d6216 --- /dev/null +++ b/MultiArena-TheBridge/.project @@ -0,0 +1,17 @@ + + + MultiArena-TheBridge + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/MultiArena-TheBridge/.settings/org.eclipse.core.resources.prefs b/MultiArena-TheBridge/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..0aa2689 --- /dev/null +++ b/MultiArena-TheBridge/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,10 @@ +eclipse.preferences.version=1 +encoding//src/cx/sfy/TheBridge/game/Game.java=UTF-8 +encoding//src/cx/sfy/TheBridge/game/GameFour.java=UTF-8 +encoding//src/cx/sfy/TheBridge/kit/Hotbar.java=UTF-8 +encoding//src/cx/sfy/TheBridge/listeners/PlayerListener.java=UTF-8 +encoding//src/cx/sfy/TheBridge/menus/AchievementsMenu.java=UTF-8 +encoding//src/cx/sfy/TheBridge/packets/PacketMain.java=UTF-8 +encoding//src/cx/sfy/TheBridge/packets/Reflection.java=UTF-8 +encoding//src/cx/sfy/TheBridge/team/TeamFour.java=UTF-8 +encoding//src/cx/sfy/TheBridge/utils/ScoreboardUtil.java=UTF-8 diff --git a/MultiArena-TheBridge/.settings/org.eclipse.jdt.core.prefs b/MultiArena-TheBridge/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..5caa538 --- /dev/null +++ b/MultiArena-TheBridge/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,13 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/MultiArena-TheBridge/.settings/org.eclipse.ltk.core.refactoring.prefs b/MultiArena-TheBridge/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000..cfcd1d3 --- /dev/null +++ b/MultiArena-TheBridge/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/MultiArena-TheBridge/achievement.yml b/MultiArena-TheBridge/achievement.yml new file mode 100644 index 0000000..f41f4ae --- /dev/null +++ b/MultiArena-TheBridge/achievement.yml @@ -0,0 +1,433 @@ +title: "&b&lArchievements - &e" +archivements: "&aArchievements " +back: "&eBack Page " +next: "&eNext Page " +close: + item: BARRIER + data: 0 + amount: 1 + name: "&cClose" + lore: |- + &7Click to close + &7this menu. +kills: + item: DIAMOND_SWORD + data: 0 + amount: 1 + name: "&aKill Archievements" + lore: |- + &7Archievements of kills + &7players in games. +wins: + item: DIAMOND + data: 0 + amount: 1 + name: "&aWin Archievements" + lore: |- + &7Archievements of win + &7games. +goals: + item: ENDER_PORTAL_FRAME + data: 0 + amount: 1 + name: "&aGoal Archievements" + lore: |- + &7Archievements of goals + &7players in games. +blocks_placed: + item: WOOD + data: 0 + amount: 1 + name: "&aBlocks Place Archievements" + lore: |- + &7Archievements of blocks + &7placed in games. +blocks_bloken: + item: DIAMOND_PICKAXE + data: 0 + amount: 1 + name: "&aBlocks Break Archievements" + lore: |- + &7Archievements of blocks + &7broken in games. +unlocked: + item: STAINED_GLASS_PANE + data: 5 + amount: 1 + name: "&a" + lore: + - "&e" + - "&7" + - "&7Reward:" + - "&8+ &3 TheBridge Experience" + - "&8+ &6 TheBridge Coins" + - "&7" + - "&7Completed: &aDONE! &7(&a&7)" + - "&7" + - "&aAchievement Unlocked!" +locked: + item: STAINED_GLASS_PANE + data: 14 + amount: 1 + name: "&c" + lore: + - "&e" + - "&7" + - "&7Reward:" + - "&8+ &3 TheBridge Experience" + - "&8+ &6 TheBridge Coins" + - "&7" + - "&7Completed: &a&7/&a" + - "&7" + - "&cAchievement Locked!" +archievements: + kills-I: + type: KILLS + name: "Killer I" + description: "Kill 50 TheBridge Players" + amount: 50 + messages: + - "&aAchievement: Killer I Completed!" + - "&7 &8+ &320 The Bridge Experience." + - "&7 &8+ &620 The Bridge Coins." + rewards: + xp: 20 + money: 20 + commands: + - "none" + wins-I: + type: WINS + name: "Winner I" + description: "Win 5 TheBridge Games" + amount: 5 + messages: + - "&aAchievement: Winner I Completed!" + - "&7 &8+ &320 The Bridge Experience." + - "&7 &8+ &620 The Bridge Coins." + rewards: + xp: 20 + money: 20 + commands: + - "none" + goals-I: + type: GOALS + name: "Scorer I" + description: "Score 50 TheBridge Goals" + amount: 50 + messages: + - "&aAchievement: Scorer I Completed!" + - "&7 &8+ &320 The Bridge Experience." + - "&7 &8+ &620 The Bridge Coins." + rewards: + xp: 20 + money: 20 + commands: + - "none" + placed-I: + type: BLOCKS_PLACED + name: "Block Placer I" + description: "Place 250 Blocks TheBridge Games" + amount: 250 + messages: + - "&aAchievement: Block Placer I Completed!" + - "&7 &8+ &320 The Bridge Experience." + - "&7 &8+ &620 The Bridge Coins." + rewards: + xp: 20 + money: 20 + commands: + - "none" + broken-I: + type: BLOCKS_BROKEN + name: "Block Breaker I" + description: "Break 50 Blocks TheBridge Games" + amount: 50 + messages: + - "&aAchievement: Block Breaker I Completed!" + - "&7 &8+ &320 The Bridge Experience." + - "&7 &8+ &620 The Bridge Coins." + rewards: + xp: 20 + money: 20 + commands: + - "none" + kills-II: + type: KILLS + name: "Killer II" + description: "Kill 100 TheBridge Players" + amount: 100 + messages: + - "&aAchievement: Killer II Completed!" + - "&7 &8+ &340 The Bridge Experience." + - "&7 &8+ &640 The Bridge Coins." + rewards: + xp: 40 + money: 40 + commands: + - "none" + wins-II: + type: WINS + name: "Winner II" + description: "Win 15 TheBridge Games" + amount: 15 + messages: + - "&aAchievement: Winner II Completed!" + - "&7 &8+ &340 The Bridge Experience." + - "&7 &8+ &640 The Bridge Coins." + rewards: + xp: 40 + money: 40 + commands: + - "none" + goals-II: + type: GOALS + name: "Scorer II" + description: "Score 100 TheBridge Goals" + amount: 100 + messages: + - "&aAchievement: Scorer II Completed!" + - "&7 &8+ &340 The Bridge Experience." + - "&7 &8+ &640 The Bridge Coins." + rewards: + xp: 40 + money: 40 + commands: + - "none" + placed-II: + type: BLOCKS_PLACED + name: "Block Placer II" + description: "Place 600 Blocks TheBridge Games" + amount: 600 + messages: + - "&aAchievement: Block Placer II Completed!" + - "&7 &8+ &340 The Bridge Experience." + - "&7 &8+ &640 The Bridge Coins." + rewards: + xp: 40 + money: 40 + commands: + - "none" + broken-II: + type: BLOCKS_BROKEN + name: "Block Breaker II" + description: "Break 100 Blocks TheBridge Games" + amount: 100 + messages: + - "&aAchievement: Block Breaker II Completed!" + - "&7 &8+ &340 The Bridge Experience." + - "&7 &8+ &640 The Bridge Coins." + rewards: + xp: 40 + money: 40 + commands: + - "none" + kills-III: + type: KILLS + name: "Killer III" + description: "Kill 150 TheBridge Players" + amount: 150 + messages: + - "&aAchievement: Killer III Completed!" + - "&7 &8+ &360 The Bridge Experience." + - "&7 &8+ &660 The Bridge Coins." + rewards: + xp: 60 + money: 60 + commands: + - "none" + wins-III: + type: WINS + name: "Winner III" + description: "Win 50 TheBridge Games" + amount: 50 + messages: + - "&aAchievement: Winner III Completed!" + - "&7 &8+ &360 The Bridge Experience." + - "&7 &8+ &660 The Bridge Coins." + rewards: + xp: 60 + money: 60 + commands: + - "none" + goals-III: + type: GOALS + name: "Scorer III" + description: "Score 150 TheBridge Goals" + amount: 150 + messages: + - "&aAchievement: Scorer III Completed!" + - "&7 &8+ &360 The Bridge Experience." + - "&7 &8+ &660 The Bridge Coins." + rewards: + xp: 60 + money: 60 + commands: + - "none" + placed-III: + type: BLOCKS_PLACED + name: "Block Placer III" + description: "Place 1500 Blocks TheBridge Games" + amount: 1500 + messages: + - "&aAchievement: Block Placer III Completed!" + - "&7 &8+ &360 The Bridge Experience." + - "&7 &8+ &660 The Bridge Coins." + rewards: + xp: 60 + money: 60 + commands: + - "none" + broken-III: + type: BLOCKS_BROKEN + name: "Block Breaker III" + description: "Break 150 Blocks TheBridge Games" + amount: 150 + messages: + - "&aAchievement: Block Breaker III Completed!" + - "&7 &8+ &360 The Bridge Experience." + - "&7 &8+ &660 The Bridge Coins." + rewards: + xp: 60 + money: 60 + commands: + - "none" + kills-IV: + type: KILLS + name: "Killer IV" + description: "Kill 200 TheBridge Players" + amount: 200 + messages: + - "&aAchievement: Killer IV Completed!" + - "&7 &8+ &380 The Bridge Experience." + - "&7 &8+ &680 The Bridge Coins." + rewards: + xp: 80 + money: 80 + commands: + - "none" + wins-IV: + type: WINS + name: "Winner IV" + description: "Win 200 TheBridge Games" + amount: 200 + messages: + - "&aAchievement: Winner IV Completed!" + - "&7 &8+ &380 The Bridge Experience." + - "&7 &8+ &680 The Bridge Coins." + rewards: + xp: 80 + money: 80 + commands: + - "none" + goals-IV: + type: GOALS + name: "Scorer IV" + description: "Score 200 TheBridge Goals" + amount: 200 + messages: + - "&aAchievement: Scorer IV Completed!" + - "&7 &8+ &380 The Bridge Experience." + - "&7 &8+ &680 The Bridge Coins." + rewards: + xp: 80 + money: 80 + commands: + - "none" + placed-IV: + type: BLOCKS_PLACED + name: "Block Placer IV" + description: "Place 3000 Blocks TheBridge Games" + amount: 3000 + messages: + - "&aAchievement: Block Placer IV Completed!" + - "&7 &8+ &380 The Bridge Experience." + - "&7 &8+ &680 The Bridge Coins." + rewards: + xp: 80 + money: 80 + commands: + - "none" + broken-IV: + type: BLOCKS_BROKEN + name: "Block Breaker IV" + description: "Break 200 Blocks TheBridge Games" + amount: 200 + messages: + - "&aAchievement: Block Breaker IV Completed!" + - "&7 &8+ &380 The Bridge Experience." + - "&7 &8+ &680 The Bridge Coins." + rewards: + xp: 80 + money: 80 + commands: + - "none" + kills-V: + type: KILLS + name: "Killer V" + description: "Kill 250 TheBridge Players" + amount: 250 + messages: + - "&aAchievement: Killer V Completed!" + - "&7 &8+ &3100 The Bridge Experience." + - "&7 &8+ &6100 The Bridge Coins." + rewards: + xp: 100 + money: 100 + commands: + - "none" + wins-V: + type: WINS + name: "Winner V" + description: "Win 250 TheBridge Games" + amount: 250 + messages: + - "&aAchievement: Winner V Completed!" + - "&7 &8+ &3100 The Bridge Experience." + - "&7 &8+ &6100 The Bridge Coins." + rewards: + xp: 100 + money: 100 + commands: + - "none" + goals-IV: + type: GOALS + name: "Scorer V" + description: "Score 250 TheBridge Goals" + amount: 250 + messages: + - "&aAchievement: Scorer V Completed!" + - "&7 &8+ &3100 The Bridge Experience." + - "&7 &8+ &6100 The Bridge Coins." + rewards: + xp: 100 + money: 100 + commands: + - "none" + placed-V: + type: BLOCKS_PLACED + name: "Block Placer V" + description: "Place 5000 Blocks TheBridge Games" + amount: 5000 + messages: + - "&aAchievement: Block Placer V Completed!" + - "&7 &8+ &3100 The Bridge Experience." + - "&7 &8+ &6100 The Bridge Coins." + rewards: + xp: 100 + money: 100 + commands: + - "none" + broken-V: + type: BLOCKS_BROKEN + name: "Block Breaker V" + description: "Break 250 Blocks TheBridge Games" + amount: 250 + messages: + - "&aAchievement: Block Breaker V Completed!" + - "&7 &8+ &3100 The Bridge Experience." + - "&7 &8+ &6100 The Bridge Coins." + rewards: + xp: 100 + money: 100 + commands: + - "none" \ No newline at end of file diff --git a/MultiArena-TheBridge/bin/.gitignore b/MultiArena-TheBridge/bin/.gitignore new file mode 100644 index 0000000..d273d66 --- /dev/null +++ b/MultiArena-TheBridge/bin/.gitignore @@ -0,0 +1 @@ +/cx/ diff --git a/MultiArena-TheBridge/cages.yml b/MultiArena-TheBridge/cages.yml new file mode 100644 index 0000000..2d6bfa7 --- /dev/null +++ b/MultiArena-TheBridge/cages.yml @@ -0,0 +1,37 @@ +size: 36 +title: "&aThe Bridge - Cages" +unlocked: +- "" +- "&7" +- "&eClick to select!" +noPerm: +- "" +- "&7" +- "&aPrice: &6" +- "&7" +- "&cYou dont have permission!" +locked: +- "" +- "&7" +- "&aPrice: &6" +- "&7" +- "&eClick to buy this!" +cages: + default: + icon: GLASS + data: 0 + amount: 1 + slot: 0 + price: 0 + isBuy: true + name: "Default Glass" + clearFile: "clear.schematic" + files: + red: "normal-red.schematic" + blue: "normal-blue.schematic" + yellow: "normal-yellow.schematic" + green: "normal-green.schematic" + permission: bridges.cage.default + description: + - "&fDefault glass to all" + - "&fplayers" \ No newline at end of file diff --git a/MultiArena-TheBridge/clear.schematic b/MultiArena-TheBridge/clear.schematic new file mode 100644 index 0000000..e7405df Binary files /dev/null and b/MultiArena-TheBridge/clear.schematic differ diff --git a/MultiArena-TheBridge/config.yml b/MultiArena-TheBridge/config.yml new file mode 100644 index 0000000..a12181c --- /dev/null +++ b/MultiArena-TheBridge/config.yml @@ -0,0 +1,132 @@ +mainLobby: null +server: ServerName +update: true +cages: false +permFormat: pex user add +defaultCage: "default" +chat: + enabled: true + lobby: "&b[TheBridge] &e: &7" + ingame: "[] : &7" + global: "&6[GLOBAL] : &7" +archievements: + disable: false +remove: + absorption: false + regeneration: false +bow: + seconds: 3 +shop: + size: 27 + glass: + slot: 4 + icon: STAINED_GLASS + data: 0 + amount: 1 + close: + slot: 22 + icon: BARRIER + data: 0 + amount: 1 +coins: + normal: + kill: 2 + win: 50 + goals: 0 + four: + kill: 2 + win: 50 + goals: 0 +xp: + normal: + kill: 1 + win: 10 + goals: 0 + four: + kill: 1 + win: 10 + goals: 0 +items: + shop: + enabled: false + material: DIAMOND + data: 0 + amount: 1 + slot: 3 + nameItem: "&aThe Bridge | Shop" + loreItem: |- + &7Click to open + &7shop of the bridge. + hotbar: + enabled: false + material: CHEST + data: 0 + amount: 1 + slot: 5 + nameItem: "&aHotbar Editor" + loreItem: |- + &7Click to open + &7hotbar editor. + menu: + enabled: false + material: BOOK + data: 0 + amount: 1 + slot: 4 + nameItem: "&aGame Selector" + loreItem: |- + &7Click to open + &7menu of select games. + random: + enabled: false + material: FEATHER + data: 0 + amount: 1 + slot: 8 + nameItem: "&eRandom Join" + loreItem: |- + &7Click to random + &7join a game. +names: + red: "Red" + blue: "Blue" + yellow: "Yellow" + green: "Green" +signs: + waiting: 5 + starting: 4 + pregame: 6 + ingame: 14 + finish: 11 + restart: 15 +MySQL: + enabled: false + username: Insider + password: spigot + database: Martu + host: 127.0.0.1 + port: 3306 +stats: null +tops: + normal: + kills: null + wins: null + goals: null + four: + kills: null + wins: null + goals: null +title: + prestart: + fadein: 0 + stayin: 21 + fadeout: 0 + start: + fadein: 0 + stayin: 21 + fadeout: 0 + restart: + fadein: 0 + stayin: 21 + fadeout: 0 +kit: null \ No newline at end of file diff --git a/MultiArena-TheBridge/killsounds.yml b/MultiArena-TheBridge/killsounds.yml new file mode 100644 index 0000000..c6c13d7 --- /dev/null +++ b/MultiArena-TheBridge/killsounds.yml @@ -0,0 +1,3 @@ +killsounds: + default: + \ No newline at end of file diff --git a/MultiArena-TheBridge/lang.yml b/MultiArena-TheBridge/lang.yml new file mode 100644 index 0000000..93e6fa1 --- /dev/null +++ b/MultiArena-TheBridge/lang.yml @@ -0,0 +1,396 @@ +prefix: "&6&lTheBridge &7:" +error: "&c&lERROR!" +signs: + normal: + line-1: "&lTheBridge Normal" + line-2: + line-3: "Map: " + line-4: "&7/" + four: + line-1: "&lTheBridge Four" + line-2: + line-3: "Map: " + line-4: "&7/" +states: + waiting: "&aWaiting..." + starting: "&eStarting" + pregame: "&cPre-Game" + ingame: "&4In-Game" + finish: "&9Finishing" + restarting: "&5Restarting" +shop: + title: "&aThe Bridge | Shop" + glass: + nameItem: "&aCage Shop" + loreItem: |- + &7Click to open + &7the cage Shop. + close: + nameItem: "&cClose" + loreItem: |- + &7Click to close + &7this shop +holograms: + your: "Your" + portal: + you: + - "&l Goal" + - "&7Defend!" + enemy: + - "&l Goal" + - "&eJump in to score!" +tops: + normal: + kills: + - "&b&lTop TheBridge Kills" + - "&aNormal mode" + - + wins: + - "&b&lTop TheBridge Winners" + - "&aNormal mode" + - + goals: + - "&b&lTop TheBridge Goal scorers" + - "&aNormal mode" + - + four: + kills: + - "&b&lTop TheBridge Kills" + - "&aFour mode" + - + wins: + - "&b&lTop TheBridge Winners" + - "&aFour mode" + - + goals: + - "&b&lTop TheBridge Goal scorers" + - "&aFour mode" + - +stats: +- "&a%player_name% &6&lThe Bridge &astatistics" +- "&aNormal Kills: &6%bridges_normal_kills%" +- "&aNormal Wins: &6%bridges_normal_wins%" +- "&aNormal Goals: &6%bridges_normal_goals%" +- "&aFour Kills: &6%bridges_four_kills%" +- "&aFour Wins: &6%bridges_four_wins%" +- "&aFour Goals: &6%bridges_four_goals%" +- "&aBlocks Placed: &6%bridges_blocks_placed%" +- "&aBlocks Broken: &6%bridges_blocks_broken%" +- "&aCoins: &6%bridges_coins%" +- "&aXP: &6%bridges_xp%" +deathMessages: + void: &7was thrown into the void + damage: &7was killed + custom: &7was death + player: "&7 by &7." + none: . +messages: + noPermission: "&cYou dont have permissions to run this command." + noBreak: "&cYou can only break blocks allowed blocks." + noPlace: "&cYou are not allowed to build here." + starting: "&eThe game starts in &b