Skip to content

Commit 3d5351c

Browse files
committed
Clean up code examples in README, streamline viewer provider logic, and improve formatting.
1 parent 3d6af95 commit 3d5351c

2 files changed

Lines changed: 5 additions & 28 deletions

File tree

README.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ public class MessagesConfig {
175175

176176
```java
177177
Cdn cdn = CdnFactory.createYamlLike()
178-
.getSettings()
179-
.withComposer(Notice.class, new MultificationNoticeCdnComposer(multification.getNoticeRegistry()))
180-
.build();
178+
.getSettings()
179+
.withComposer(Notice.class, new MultificationNoticeCdnComposer(multification.getNoticeRegistry()))
180+
.build();
181181
```
182182

183183
#### (CDN) 4. Load the configuration:
@@ -227,33 +227,13 @@ public class MessagesConfig extends OkaeriConfig {
227227
```java
228228
MessagesConfig config = (MessagesConfig) ConfigManager.create(MessagesConfig.class)
229229
.withConfigurer(new MultificationSerdesPack(multification.getNoticeRegistry()))
230-
.withConfigurer(
231-
new SerdesCommons(),
232-
new YamlBukkitConfigurer(),
233-
new SerdesBukkit()) // specify configurers for your platform
230+
.withConfigurer(new SerdesCommons(), new YamlBukkitConfigurer(), new SerdesBukkit()) // specify configurers for your platform
234231
.withBindFile(new File(dataFolder, "messages.yml"))
235232
.withRemoveOrphans(true) // automatic removal of undeclared keys
236233
.saveDefaults() // save file if does not exists
237234
.load(true);
238235
```
239236

240-
## 📚 Documentation
241-
242-
For complete documentation, guides, and examples, visit our [documentation](/docs):
243-
244-
- **[Getting Started](/docs/installation)** - Installation and setup
245-
- **[Basic Usage](/docs/basic-usage)** - Learn the fundamentals
246-
- **[Configuration](/docs/configuration)** - CDN & Okaeri integration
247-
- **[Advanced Features](/docs/advanced)** - i18n, custom formatters, platform adapters
248-
- **[Platform Comparison](/docs/platform-comparison)** - Paper vs Bukkit
249-
- **[API Reference](/docs/api-reference)** - Complete API documentation
250-
- **[Examples](/docs/examples)** - Working code examples
251-
- **[FAQ](/docs/faq)** - Common questions and troubleshooting
252-
253-
## 🤝 Contributing
254-
255-
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
256-
257237
## 📄 License
258238

259239
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
@@ -267,4 +247,4 @@ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENS
267247

268248
---
269249

270-
Made with ❤️ by [EternalCode Team](https://github.com/EternalCodeTeam)
250+
Made with ❤️ by [EternalCodeTeam](https://github.com/EternalCodeTeam)

multification-paper/src/com/eternalcode/multification/paper/PaperViewerProvider.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public CommandSender player(UUID uuid) {
3030
public Collection<CommandSender> all() {
3131
return Bukkit.getOnlinePlayers()
3232
.stream()
33-
.filter(Player::isOnline)
3433
.map(player -> (CommandSender) player)
3534
.collect(Collectors.toList());
3635
}
@@ -39,7 +38,6 @@ public Collection<CommandSender> all() {
3938
public Collection<CommandSender> onlinePlayers() {
4039
return Bukkit.getOnlinePlayers()
4140
.stream()
42-
.filter(Player::isOnline)
4341
.map(player -> (CommandSender) player)
4442
.collect(Collectors.toList());
4543
}
@@ -52,7 +50,6 @@ public Collection<CommandSender> onlinePlayers(String permission) {
5250

5351
return Bukkit.getOnlinePlayers()
5452
.stream()
55-
.filter(Player::isOnline)
5653
.filter(player -> player.hasPermission(permission))
5754
.map(player -> (CommandSender) player)
5855
.collect(Collectors.toList());

0 commit comments

Comments
 (0)