Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit 9bafd25

Browse files
author
Gregory
authored
Update to v1.9.1 (#134)
2 parents a555cc4 + 64f001e commit 9bafd25

111 files changed

Lines changed: 5022 additions & 1724 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@
55
Novaconomy gives you the freedom to create **multiple** economies of your own choice, just like in real life!
66
With the freedom to have your own symbols, icons, conversion rates, and even interest, you'll have all you need to have a proper Economy!
77

8+
---
9+
10+
## 🔮 Features
11+
12+
**Thousands of Forms of Content**
13+
14+
- *Fully Customizable* Multiple Economy Creation
15+
- Custom Model Icons, Names, Symbols, Interest, Natural Causes, Conversionable, and more!
16+
- *Optional* support for Negative Balances!
17+
- *Fully Customizable* Item Market
18+
- *Fully Customizable* Player Businesses & Corporations
19+
- Player-created Business Products, Ratings, Homes, Statistics & More!
20+
- Player-created Corporations for managing Businesses' permissions, profits, achievements, and more!
21+
- Global Bank
22+
- Player-owned Bounties
23+
- Custom Taxing Events
24+
- *Fully Customizable* Auction House
25+
- BIN & Bidding Auctions
26+
- Per-player and Global Settings
27+
- Advanced & Efficient GUI Mechanics
28+
- Customizable Message Handler & Component Support
29+
- Verbose Configurations
30+
- **PlaceholderAPI**, **Vault**, **Treasury**, **Essentials**, and more support/integration!
31+
- Manually Translated in over 10 Languages
32+
33+
---
34+
835
<h2 style="text-decoration: underline;">📓Changelog</h2>
936

1037
### 🛖 1.9.0 Update: Awesome Auctions
@@ -28,6 +55,23 @@ With the freedom to have your own symbols, icons, conversion rates, and even int
2855
- Fix Temporary Copy Exceptions
2956
- Use more efficient Maps for Serialization
3057

58+
- **v1.9.1**
59+
- **Messages Overhaul**
60+
- Added support for Spigot/Paper Components
61+
- Configurable Message Handlers in functionality.yml
62+
- Toggleable per-player with "Advanced Text" setting
63+
- **Corporation Hierarchy**
64+
- Customizable Corporation Ranks for business members
65+
- Add Permissions to how to interact with their parent corporation to their ranks
66+
- Update Natural Causes
67+
- Add Building Natural Cause
68+
- Add ModifierReader Cache for faster loading Natural Cause Modifiers
69+
- Other API & Publishing Updates
70+
- Updated JavaDocs
71+
- Dependency Updates
72+
- Fix Essentials-related Integration Issues
73+
- Fix Additional 1.20.3+ Issues
74+
3175
### 💸 1.8.0 Update: Ecstatic Economy
3276
- New Features
3377
- **Unlimited Business Products**

abstraction/src/main/java/us/teaminceptus/novaconomy/ModifierReader.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@
1111
import java.util.Map.Entry;
1212
import java.util.stream.Collectors;
1313

14+
import static us.teaminceptus.novaconomy.messages.MessageHandler.format;
15+
1416
public final class ModifierReader {
1517

1618
private ModifierReader() {}
1719

20+
public static final Map<String, Map<String, Set<Entry<Economy, Double>>>> LOADED_MODIFIERS = new HashMap<>();
21+
1822
public static Map<String, Map<String, Set<Entry<Economy, Double>>>> getAllModifiers() throws IllegalArgumentException {
23+
if (!LOADED_MODIFIERS.isEmpty()) return LOADED_MODIFIERS;
24+
1925
Map<String, Map<String, Set<Entry<Economy, Double>>>> mods = new HashMap<>();
2026
FileConfiguration config = NovaConfig.getPlugin().getConfig();
2127

@@ -52,7 +58,8 @@ public static Map<String, Map<String, Set<Entry<Economy, Double>>>> getAllModifi
5258
});
5359
}
5460

55-
return mods;
61+
LOADED_MODIFIERS.putAll(mods);
62+
return LOADED_MODIFIERS;
5663
}
5764

5865
public static Map<String, Set<Entry<Economy, Double>>> getModifier(String mod) {
@@ -113,7 +120,7 @@ public static Entry<Economy, Double> readString(String s) {
113120

114121
public static String toModString(Entry<Economy, Double> entry) {
115122
if (entry == null) return null;
116-
return NovaUtil.format("%,.0f", entry.getValue()) + entry.getKey().getSymbol();
123+
return format("%,.0f", entry.getValue()) + entry.getKey().getSymbol();
117124
}
118125

119126
public static List<String> toModList(List<Entry<Economy, Double>> list) {

0 commit comments

Comments
 (0)