Skip to content

Commit f80758d

Browse files
committed
Spelling
1 parent 3873b3a commit f80758d

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
import org.jetbrains.annotations.Nullable;
5050
import org.maxgamer.quickshop.QuickShop;
5151
import org.maxgamer.quickshop.event.*;
52-
import org.maxgamer.quickshop.util.ComponentPackge;
52+
import org.maxgamer.quickshop.util.ComponentPackage;
5353
import org.maxgamer.quickshop.util.PriceLimiter;
5454
import org.maxgamer.quickshop.util.Util;
5555
import org.maxgamer.quickshop.util.logging.container.ShopRemoveLog;
@@ -688,12 +688,12 @@ public boolean inventoryAvailable() {
688688
}
689689

690690
@Override
691-
public List<ComponentPackge> getSignText(@NotNull String locale) {
691+
public List<ComponentPackage> getSignText(@NotNull String locale) {
692692
Util.ensureThread(false);
693-
List<ComponentPackge> lines = new ArrayList<>();
693+
List<ComponentPackage> lines = new ArrayList<>();
694694
//Line 1
695695
String statusStringKey = inventoryAvailable() ? "signs.status-available" : "signs.status-unavailable";
696-
lines.add(new ComponentPackge(TextComponent.fromLegacyText(plugin.text().of("signs.header", this.ownerName(false), plugin.text().of(statusStringKey).forLocale(locale)).forLocale(locale))));
696+
lines.add(new ComponentPackage(TextComponent.fromLegacyText(plugin.text().of("signs.header", this.ownerName(false), plugin.text().of(statusStringKey).forLocale(locale)).forLocale(locale))));
697697

698698
//Line 2
699699
String tradingStringKey;
@@ -732,20 +732,20 @@ public List<ComponentPackge> getSignText(@NotNull String locale) {
732732
}
733733

734734
// TODO No-longer use SHOP_SIGN_PREFIX since we use modern storage method. Pending for deletion.
735-
lines.add(new ComponentPackge(TextComponent.fromLegacyText(SHOP_SIGN_PREFIX + line2 + " ")));
735+
lines.add(new ComponentPackage(TextComponent.fromLegacyText(SHOP_SIGN_PREFIX + line2 + " ")));
736736

737737
//line 3
738738
if (this.getItem().hasItemMeta() && this.getItem().getItemMeta().hasDisplayName()) {
739739
TextComponent left = new TextComponent(plugin.text().of("signs.item-left").forLocale());
740740
TranslatableComponent mediumItem = new TranslatableComponent("item." + getItem().getType().getKey().getNamespace() + "." + getItem().getType().getKey().getKey());
741741
TextComponent right = new TextComponent(plugin.text().of("signs.item-right").forLocale());
742-
lines.add(new ComponentPackge(new ComponentBuilder()
742+
lines.add(new ComponentPackage(new ComponentBuilder()
743743
.append(left)
744744
.append(mediumItem)
745745
.append(right)
746746
.create()));
747747
} else {
748-
lines.add(new ComponentPackge(new ComponentBuilder().append(TextComponent.fromLegacyText(plugin.text().of("signs.item-left").forLocale()))
748+
lines.add(new ComponentPackage(new ComponentBuilder().append(TextComponent.fromLegacyText(plugin.text().of("signs.item-left").forLocale()))
749749
.append(TextComponent.fromLegacyText(Util.getItemStackName(getItem())))
750750
.append(TextComponent.fromLegacyText(plugin.text().of("signs.item-right").forLocale())).create()));
751751
}
@@ -759,7 +759,7 @@ public List<ComponentPackge> getSignText(@NotNull String locale) {
759759
} else {
760760
line4 = plugin.text().of("signs.price", Util.format(this.getPrice(), this)).forLocale();
761761
}
762-
lines.add(new ComponentPackge(TextComponent.fromLegacyText(line4)));
762+
lines.add(new ComponentPackage(TextComponent.fromLegacyText(line4)));
763763
return lines;
764764
}
765765

@@ -769,7 +769,7 @@ public List<ComponentPackge> getSignText(@NotNull String locale) {
769769
* @param lines The array of lines to change. Index is line number.
770770
*/
771771
@Override
772-
public void setSignText(@NotNull List<ComponentPackge> lines) {
772+
public void setSignText(@NotNull List<ComponentPackage> lines) {
773773
Util.ensureThread(false);
774774
List<Sign> signs = this.getSigns();
775775
for (Sign sign : signs) {

src/main/java/org/maxgamer/quickshop/shop/Shop.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.jetbrains.annotations.NotNull;
3333
import org.jetbrains.annotations.Nullable;
3434
import org.maxgamer.quickshop.QuickShop;
35-
import org.maxgamer.quickshop.util.ComponentPackge;
35+
import org.maxgamer.quickshop.util.ComponentPackage;
3636

3737
import java.util.List;
3838
import java.util.Objects;
@@ -187,7 +187,7 @@ public interface Shop {
187187
* Line 2: Shop Item Name
188188
* Line 3: Price
189189
*/
190-
default List<ComponentPackge> getSignText(String locale) {
190+
default List<ComponentPackage> getSignText(String locale) {
191191
//backward support
192192
throw new UnsupportedOperationException();
193193
}
@@ -197,7 +197,7 @@ default List<ComponentPackge> getSignText(String locale) {
197197
*
198198
* @param paramArrayOfString The texts you want set
199199
*/
200-
void setSignText(@NotNull List<ComponentPackge> paramArrayOfString);
200+
void setSignText(@NotNull List<ComponentPackage> paramArrayOfString);
201201

202202
/**
203203
* Update shop data to database

src/main/java/org/maxgamer/quickshop/util/ComponentPackge.java renamed to src/main/java/org/maxgamer/quickshop/util/ComponentPackage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import net.md_5.bungee.api.chat.BaseComponent;
44

5-
public class ComponentPackge {
5+
public class ComponentPackage {
66
private final BaseComponent[] components;
77

8-
public ComponentPackge(BaseComponent... components) {
8+
public ComponentPackage(BaseComponent... components) {
99
this.components = components;
1010
}
1111

src/main/java/org/maxgamer/quickshop/util/hack/packet/SignPacketHack.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.bukkit.entity.Player;
1313
import org.jetbrains.annotations.NotNull;
1414
import org.maxgamer.quickshop.QuickShop;
15-
import org.maxgamer.quickshop.util.ComponentPackge;
15+
import org.maxgamer.quickshop.util.ComponentPackage;
1616

1717
import java.util.List;
1818

@@ -28,7 +28,7 @@ public SignPacketHack(QuickShop plugin) {
2828
Validate.isTrue(Bukkit.getPluginManager().isPluginEnabled("BKCommonLib"), "Require BKCommonLib installed!");
2929
}
3030

31-
public void sendLines(@NotNull Sign sign, @NotNull List<ComponentPackge> lines, Player player) {
31+
public void sendLines(@NotNull Sign sign, @NotNull List<ComponentPackage> lines, Player player) {
3232
if (player != null) {
3333
CommonPacket updatePacket = BlockUtil.getUpdatePacket(sign);
3434
if (updatePacket != null) {
@@ -38,7 +38,7 @@ public void sendLines(@NotNull Sign sign, @NotNull List<ComponentPackge> lines,
3838
}
3939
}
4040

41-
public void applyToSign(@NotNull CommonPacket updatePacket, @NotNull List<ComponentPackge> lines) {
41+
public void applyToSign(@NotNull CommonPacket updatePacket, @NotNull List<ComponentPackage> lines) {
4242
if (updatePacket.getType() == PacketType.OUT_TILE_ENTITY_DATA) {
4343
// >= MC 1.10.2
4444

0 commit comments

Comments
 (0)