Comments (16)
While this would be useful, this is close to impossible. I can't alter the player data files while the server is running, and using a plugin would make it version and server dependant.
from bukkitgui2.
I don't see a good way to do this aside from making several plugin versions, or somehow making a plugin that is universally compatible with all versions. I will reopen this if I find a better way to do it.
from bukkitgui2.
@Bertware You could use the give command instead of directly modifying the player data files, although that might be dependent on the server software.
from bukkitgui2.
That would work, but it's limited to giving items only, not viewing or editing the inventories (which is what @technoguy20000 meant)
from bukkitgui2.
I've heard from a plugin developer that the plugin is not version specific if it doesn't have version specific imports, in other words, using only the BukkitAPI
from bukkitgui2.
Just by the way, the give command paired with the clear command (/clear [player] [item] [data] [maxCount] [dataTag]) and the .dat file for viewing the inventory, this approach still could work. A plugin would still be better though.
from bukkitgui2.
@Bertware I was thinking about making a plugin for it, since I figured out a way that shouldn't depend on a certain version using the Bukkit Inventory API. How should the information be transferred between the plugin and BukkitGUI?
from bukkitgui2.
The .dat file isn't up to date while the server is running I believe, or it's locked. It might be possible though, although it's not my number one priority.
A possible solution would be this:
- User clicks "view inventory"
- GUI sends command "/bukkitguihelp inventory (command limited to console operator only)
- GUI receives JSON encoded array, hides the output from the user
- GUI parses JSON and shows window
from bukkitgui2.
I vote a Sponge plugin, since Bukkit will be obsolete in a few months.
It should be an optional extra though.
from bukkitgui2.
@Bertware I tested this on my server, you can modify the .dat while the server is running but the player needs to disconnect before the changes save, or they get overwritten when something happens before the player leaves.
@simon816 I'll do both, but I need to learn the Sponge API first. I know that Glowstone & Spigot use the Bukkit API still. EDIT: Sponge looks a lot like Minecraft Forge modding, so Sponge support may take a while.
from bukkitgui2.
Before y'all start working on plugins or stuff: both glowstone and sponge support is planned or work in progress, but as far as I know they both don't work 100% as they should now.
Just a reminder, so you don't get disappointed when you want to test
from bukkitgui2.
I've almost finished the plugin, and here's the output when you do '/bukkitguihelp inventory playername' http://pastebin.com/L8DhNGad
I'm just trying to figure out why its adding (0) on the end of the item name, once I fix that the bukkit / spigot plugin is done. EDIT: Found out its not printing out equipped armor, so that needs to be fixed as well. π
from bukkitgui2.
@Bertware @technoguy20000
Spigot, Bukkit, and Glowstone support for only reading the inventory is available here: https://github.com/spideynn/InventoryAPI-JSON/releases
The way this works is 0-35 are the inventory slots, and 36-39 are the armor slots. I'm working on a diagram for it at the moment. EDIT2: Fixed. https://github.com/spideynn/InventoryAPI-JSON/releases/tag/v0.2.1
from bukkitgui2.
I'm currently fixing up the server support before I'm continuing on this myself (if you know .NET, feel free to create an inventory edit window that takes the console output and player name, shows the inventory, and sends the necessary commands to alter the inventory)
from bukkitgui2.
@Bertware Yeah, I'll see what I can do with it. I just need to look through the codebase to learn how you do things in this.
from bukkitgui2.
You could add it to the MinecraftInterop namespace, a class and a form to edit inventories. I try to put all the forms in the UI folder/namespace, thought addon specific forms are in the corresponding addon folder/namespace. Since this would be globally available in both console and player list, I'd keep it as a global thing
from bukkitgui2.
Related Issues (20)
- Rainbow Support? HOT 2
- Fix Gui Not Starting HOT 1
- 6:50:53 PM You must run this jar through bash (msysgit).....Can i have help
- Major Plugin Error HOT 1
- Java Path - Bukkit GUI v2 HOT 1
- Cannot use any of the java versions to start my server
- Empty Server HOT 1
- Running as admin. HOT 2
- BukkitGUI not working properly HOT 1
- 1.12 Not catching errors HOT 1
- 1.12 It seem like you don't have permission to access needed files HOT 1
- Failed to Initialize on Windows XP Pro SP2 HOT 6
- Stuck at Done 100%
- Help
- Error: Invalid or corrupt jarfile (JarFileLocation) & Plugins not showing HOT 2
- Question: When starting the server, it still pops up the cold vanilla minecraft server GUI, and -nogui doesn't work to get rid of it. How do I make it so that the old Vanilla GUI doesn't pop up? HOT 3
- Only Java 32 Bit? HOT 1
- No manual java-path anymore in the gui?
- Trigger: Elapsed time isnΒ΄t added to version V2, only Elapese server uptime
- bukkit gui not working error:the java path coud not be found ,server start aborted version in the super start tab the corect javaplese select
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bukkitgui2.