Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 2f38766

Browse files
committed
1.4.3
0 parents  commit 2f38766

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+10407
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/target/
2+
*.idea
3+
*.iml
4+
5+
/.gradle
6+
*/build/
7+
gradle-app.setting
8+
!gradle-wrapper.jar
9+
.gradletasknamecache

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SBAHypixelify
2+
3+
This addon is to the ScreamingBedWars Plugin made by ScreamingSandals, it's made to hypixelify certain elements of the plugin such as store,
4+
player behavior, events, scoreboard and so on. Download this plugin directly from [spigot](https://www.spigotmc.org/resources/screaming-bedwars-extension-1-15-2.79505/)
5+
6+
7+
## Features:
8+
9+
- Permanent Armor - saving player armor stats on death and loading them in after respawn cooldown
10+
- Auto Equips armor for you after purchase
11+
- Gives players wooden sword at start of the game
12+
- Permanent Sword and Armor [TEAM] Enchantments
13+
- Prevent Player from dropping swords.
14+
- Hypixel store like prices
15+
- EventListeners so that Players can't unequip Armor
16+
- Downgrade Pickaxe and Axe each time player dies!
17+
- Disable certain inventory movements and putting certain items in chest
18+
- Purchase and purchase fail messages
19+
- Team Upgrades store!
20+
- Improved team upgrade shop to be like hypixel's upgrades
21+
- Scoreboard system!
22+
- Tab and player prefixing
23+
- Disabled Armor and swords breaking
24+
- Custom Titles
25+
- Games Inventory GUI!
26+
- Party System!
27+
- Party Chat
28+
- Legacy Support
29+
- Automatic Spawner Upgrades
30+
- Lobby Scoreboard!
31+
- Shout Command!
32+
- Blindess Trap!
33+
- Heal Pool!
34+
- [NEW] Floating Rotating Generators!
35+
36+
37+
## Snapshot builds
38+
Tired of waiting for a newer version of sbahypixelify to release?, get the latest version from [ScreamingSandals CI server](https://ci.screamingsandals.org/job/SBAHypixelify/)
39+
40+
## Credits
41+
Special thanks to the [ScreamingSandals team](https://github.com/ScreamingSandals) and [NotFoundName](https://github.com/notfoundname) (for his XpWars addon that helped in the creation of this one). This wouldn't have been possible without them.

api/build.gradle

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package io.pronze.hypixelify.api;
2+
3+
import io.pronze.hypixelify.api.game.GameStorage;
4+
import io.pronze.hypixelify.api.wrapper.PlayerWrapper;
5+
import org.bukkit.Bukkit;
6+
import org.bukkit.entity.Player;
7+
import org.screamingsandals.bedwars.api.game.Game;
8+
9+
public interface SBAHypixelifyAPI {
10+
11+
/**
12+
*
13+
* @return registered instance of SBAHypixelify
14+
*/
15+
static SBAHypixelifyAPI getInstance(){
16+
return Bukkit.getServer().getServicesManager().getRegistration(SBAHypixelifyAPI.class).getProvider();
17+
}
18+
19+
/**
20+
*
21+
* @param game
22+
* @return Game storage of game provided, null if not exists
23+
*/
24+
GameStorage getGameStorage(Game game);
25+
26+
/**
27+
*
28+
* @param player
29+
* @return returns PlayerWrapper object of specified player
30+
*/
31+
PlayerWrapper getPlayerWrapper(Player player);
32+
33+
34+
}
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
package io.pronze.hypixelify.api.events;
2+
3+
4+
import org.bukkit.entity.Player;
5+
import org.bukkit.event.Event;
6+
import org.bukkit.event.HandlerList;
7+
import org.bukkit.inventory.ItemStack;
8+
import org.screamingsandals.bedwars.api.game.Game;
9+
import org.screamingsandals.bedwars.lib.sgui.utils.MapReader;
10+
11+
import java.util.Map;
12+
13+
public class ApplyPropertyToItemEvent extends Event {
14+
15+
private static final HandlerList handlers = new HandlerList();
16+
private Game game;
17+
private Player player;
18+
private ItemStack stack;
19+
private Map<String, Object> properties;
20+
private final MapReader reader;
21+
private String price = null;
22+
23+
/**
24+
* @param game
25+
* @param player
26+
* @param stack
27+
* @param properties
28+
*/
29+
public ApplyPropertyToItemEvent(Game game, Player player, ItemStack stack, Map<String, Object> properties, MapReader reader) {
30+
this.game = game;
31+
this.player = player;
32+
this.stack = stack;
33+
this.properties = properties;
34+
this.reader = reader;
35+
}
36+
37+
public static HandlerList getHandlerList() {
38+
return ApplyPropertyToItemEvent.handlers;
39+
}
40+
41+
public String getPrice() {
42+
return price;
43+
}
44+
45+
public void setPrice(String st) {
46+
price = st;
47+
}
48+
49+
public MapReader getReader() {
50+
return reader;
51+
}
52+
53+
/**
54+
* @return
55+
*/
56+
public Game getGame() {
57+
return this.game;
58+
}
59+
60+
/**
61+
* @return
62+
*/
63+
public Player getPlayer() {
64+
return this.player;
65+
}
66+
67+
/**
68+
* @param stack
69+
* @return
70+
*/
71+
public boolean setStack(ItemStack stack) {
72+
if (stack == null) {
73+
return false;
74+
}
75+
this.stack = stack;
76+
return true;
77+
}
78+
79+
/**
80+
* @return
81+
*/
82+
public ItemStack getStack() {
83+
return this.stack;
84+
}
85+
86+
/**
87+
* @return
88+
*/
89+
public Map<String, Object> getProperties() {
90+
return this.properties;
91+
}
92+
93+
/**
94+
* @return
95+
*/
96+
public String getPropertyName() {
97+
return (String) this.properties.get("name");
98+
}
99+
100+
/**
101+
* @param key
102+
* @return
103+
*/
104+
public Object getProperty(String key) {
105+
return this.properties.get(key);
106+
}
107+
108+
/**
109+
* @param key
110+
* @return
111+
*/
112+
public String getStringProperty(String key) {
113+
return this.properties.get(key).toString();
114+
}
115+
116+
/**
117+
* @param key
118+
* @return
119+
*/
120+
public byte getByteProperty(String key) {
121+
return ((Number) this.properties.get(key)).byteValue();
122+
}
123+
124+
/**
125+
* @param key
126+
* @return
127+
*/
128+
public short getShortProperty(String key) {
129+
return ((Number) this.properties.get(key)).shortValue();
130+
}
131+
132+
/**
133+
* @param key
134+
* @return
135+
*/
136+
public int getIntProperty(String key) {
137+
return ((Number) this.properties.get(key)).intValue();
138+
}
139+
140+
/**
141+
* @param key
142+
* @return
143+
*/
144+
public long getLongProperty(String key) {
145+
return ((Number) this.properties.get(key)).longValue();
146+
}
147+
148+
/**
149+
* @param key
150+
* @return
151+
*/
152+
public float getFloatProperty(String key) {
153+
return ((Number) this.properties.get(key)).floatValue();
154+
}
155+
156+
/**
157+
* @param key
158+
* @return
159+
*/
160+
public double getDoubleProperty(String key) {
161+
return ((Number) this.properties.get(key)).doubleValue();
162+
}
163+
164+
/**
165+
* @param key
166+
* @return
167+
*/
168+
public boolean getBooleanProperty(String key) {
169+
return Boolean.parseBoolean(this.properties.get(key).toString());
170+
}
171+
172+
/**
173+
* @param key
174+
* @return
175+
*/
176+
public char getCharProperty(String key) {
177+
return (char) this.properties.get(key);
178+
}
179+
180+
@Override
181+
public HandlerList getHandlers() {
182+
return ApplyPropertyToItemEvent.handlers;
183+
}
184+
185+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package io.pronze.hypixelify.api.events;
2+
3+
import org.bukkit.entity.Player;
4+
import org.bukkit.event.Cancellable;
5+
import org.bukkit.event.Event;
6+
import org.bukkit.event.HandlerList;
7+
8+
public class GameSelectorOpenEvent extends Event implements Cancellable {
9+
private static final HandlerList handlers = new HandlerList();
10+
private Player player;
11+
private boolean isCancelled = false;
12+
private int mode;
13+
14+
public GameSelectorOpenEvent(Player player, int mode){
15+
this.player = player;
16+
this.mode = mode;
17+
}
18+
19+
public Player getPlayer(){
20+
return player;
21+
}
22+
23+
public int getMode(){
24+
return mode;
25+
}
26+
27+
@Override
28+
public boolean isCancelled() {
29+
return isCancelled;
30+
}
31+
32+
@Override
33+
public void setCancelled(boolean b) {
34+
isCancelled = b;
35+
}
36+
37+
@Override
38+
public HandlerList getHandlers() {
39+
return GameSelectorOpenEvent.handlers;
40+
}
41+
42+
public static HandlerList getHandlerList() {
43+
return GameSelectorOpenEvent.handlers;
44+
}
45+
}

0 commit comments

Comments
 (0)