Skip to content

Commit

Permalink
Remove: pumpkin-plugin
Browse files Browse the repository at this point in the history
We will focus on other things by now. And extism just slows down compile and indexing times extremly
  • Loading branch information
Snowiiii committed Oct 14, 2024
1 parent 3eacf1e commit 3ca472c
Show file tree
Hide file tree
Showing 8 changed files with 218 additions and 1,956 deletions.
2,068 changes: 218 additions & 1,850 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ members = [
"pumpkin-entity",
"pumpkin-inventory",
"pumpkin-macros/",
"pumpkin-plugin",
"pumpkin-protocol/",
"pumpkin-registry/",
"pumpkin-world",
Expand Down
13 changes: 0 additions & 13 deletions pumpkin-plugin/Cargo.toml

This file was deleted.

17 changes: 0 additions & 17 deletions pumpkin-plugin/src/api/identifer.rs

This file was deleted.

1 change: 0 additions & 1 deletion pumpkin-plugin/src/api/mod.rs

This file was deleted.

65 changes: 0 additions & 65 deletions pumpkin-plugin/src/lib.rs

This file was deleted.

5 changes: 0 additions & 5 deletions pumpkin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ version = "0.1.0-dev"
description = "Empowering everyone to host fast and efficient Minecraft servers."
edition = "2021"

[features]
default = ["plugins"]
plugins = ["pumpkin-plugin/plugins"]

[dependencies]
# pumpkin
pumpkin-core = { path = "../pumpkin-core" }
pumpkin-config = { path = "../pumpkin-config" }
pumpkin-plugin = { path = "../pumpkin-plugin" }
pumpkin-inventory = { path = "../pumpkin-inventory" }
pumpkin-world = { path = "../pumpkin-world" }
pumpkin-entity = { path = "../pumpkin-entity" }
Expand Down
4 changes: 0 additions & 4 deletions pumpkin/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use pumpkin_core::GameMode;
use pumpkin_entity::EntityId;
use pumpkin_inventory::drag_handler::DragHandler;
use pumpkin_inventory::{Container, OpenContainer};
use pumpkin_plugin::PluginLoader;
use pumpkin_protocol::client::login::CEncryptionRequest;
use pumpkin_protocol::client::status::CStatusResponse;
use pumpkin_protocol::{client::config::CPluginMessage, ClientPacket};
Expand Down Expand Up @@ -38,7 +37,6 @@ pub struct Server {
key_store: KeyStore,
server_listing: CachedStatus,
server_branding: CachedBranding,
pub plugin_loader: PluginLoader,

pub command_dispatcher: Arc<CommandDispatcher<'static>>,
pub worlds: Vec<Arc<World>>,
Expand Down Expand Up @@ -73,14 +71,12 @@ impl Server {
// First register default command, after that plugins can put in their own
let command_dispatcher = default_dispatcher();
log::info!("Loading Plugins");
let plugin_loader = PluginLoader::load();

let world = World::load(Dimension::OverWorld.into_level(
// TODO: load form config
"./world".parse().unwrap(),
));
Self {
plugin_loader,
cached_registry: Registry::get_static(),
open_containers: RwLock::new(HashMap::new()),
drag_handler: DragHandler::new(),
Expand Down

0 comments on commit 3ca472c

Please sign in to comment.