GithubHelp home page GithubHelp logo

bentoboxworld / invswitcher Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 5.0 160 KB

World inventory switcher. Handles health, exp, advancements, inventory, etc.

License: Eclipse Public License 2.0

Java 100.00%
bentobox inventory addon food-level inventory-switchers advancements

invswitcher's People

Contributors

bonne avatar tastybento avatar wellnesscookie avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

invswitcher's Issues

Add economy to be separated

Description

Is your feature request related to a problem?

On a server with multiple game modes (BSkyBlock, Boxed, AcidIsland) the Vault economy is shared on the server level.

Describe the solution you'd like us to implement.

Something like the Multi World Money plugin (that mr tastybento sir wrote). The configuration for the economy should be the same as the inventories...just add money to the enabled things.

Describe alternatives you've considered.

Other plugins...but nothing as lightweight as this solution.

Additional context

n/a

Clear inventory on start

Description

Describe the bug

Installed InvSwitcher, every player got it's inventory cleared out.

Steps to reproduce the behavior

Download and install on a pre-existing world.

Expected behavior

Not wipe out the inventory.

Screenshots and videos (Optional)

A picture of an empty inventory goes here

Environment

Output of /bbox version (Mandatory)

It would be more efficient if

[19:52:54 INFO]: Running PURPUR 1.16.5.
[19:52:54 INFO]: BentoBox version: 1.16.2
[19:52:54 INFO]: Database: JSON
[19:52:54 INFO]: Loaded Game Worlds:
[19:52:54 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, The End
[19:52:54 INFO]: Loaded Addons:
[19:52:54 INFO]: Biomes 1.14.0 (ENABLED)
[19:52:54 INFO]: BSkyBlock 1.14.4 (ENABLED)
[19:52:54 INFO]: Challenges 0.8.4 (ENABLED)
[19:52:54 INFO]: ControlPanel 1.13.0 (ENABLED)
[19:52:54 INFO]: DimensionalTrees 1.6.0 (ENABLED)
[19:52:54 INFO]: Level 2.6.3 (ENABLED)
[19:52:54 INFO]: Limits 1.15.5 (ENABLED)
[19:52:54 INFO]: Warps 1.10.2 (ENABLED)

Inventory issue on version 1.16.1

when you switch from gamemode to gamemode, and you enter the chest, then you have things from the previous regime.

Addons:
image

Version and Plugins:
image

Change name from addon-invSwitcher to invSwitcher

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Nope all addons don't start with addon-, to be consistent we should change the repoository name to reflect just the name.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Easy change name and drop addon-

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
None

Additional context
Add any other context or screenshots about the feature request here.
None

InvSwitcher

Expected behavior

Players teleport to Skyblock and then return to the world, and items disappear.

Observed/Actual behavior

i don't know

Steps/models to reproduce

i don't know

BentoBox version

1.24.1

Plugin list

Screenshot_90

Other

Players teleport to Skyblock and then return to the world, and items disappear.
and money disappear world

Multiverse inventories

Spigot 1.13.2
java 8
database: yaml

1- The plugin "Multiverse Inventories" is not compatible, after several attempts, there is always a part of the inventory that is not shared and also money.
I tried to remove the "addon invswitcher" and everything is sharing well without this addon, but the addon is useful and essential for the challenge and the bentobox, so I put everything back in place and the sharing problem came back .

I have removed the "Multiverse Inventory" plug-in for the moment but without a sharing of inventories and money, it is impossible to create any other map that could be combined with the BSB maps.
Example. a map named at our choice that would serve as the point of arrival before choosing which map we want to go to, BAB or AcidIsland.

Support EnderChests

Description

Is your feature request related to a problem?

BentoBox offers to enable ender chests, however, if you have multiple gamemodes and invSwitcher, ender chests still contain the same inventory.

Describe the solution you'd like us to implement.

EnderChest content should be treated the same way as player inventory.

Additional context

Comes from Discord.

Advancement notifications

Description

Describe the bug

When player switch gamemodes, server get notified with about new advancements, however, it just adds advancements which are in gamemode. So rapidly switching gamemodes just spams the whole server with advancement unlock messages.

Steps to reproduce the behavior

Get some advancements in one gamemode, while different ones in another gamemode.
Then switch gamemodes.

Expected behavior

The server should not be notified about unlocked advancements if the player switches game modes and it is just restoring advancements for a given game mode.

Screenshots and videos (Optional)

bug

Environment

Output of /bbox version (Mandatory)

version

Additional context (Optional)

Tested on tastybento server.

I keep losing my inventory

Description
I log out and when I return my inventory is missing for all three worlds.

Steps to reproduce the behavior:

  1. Not sure what causes is yet, I thought it had something to do when deleting world folders during setup of server
  2. I logged out last night and when I logged back in today all my stuff was gone. I can replace my stuff easy, it is becoming annoying

Expected behavior
to have my armor and items in my inventory where I left them

Screenshots
If applicable, add screenshots to help explain your problem.

Server Information:

[Please complete the following information:]

  • Database being used (YAML, JSON, MySQL, MongoDB): default yml

  • OS: [e.g. iOS] debian

  • Java Version: [e.g. Java 8] java 8

  • BentoBox version: [e.g. 1.7.2.21] 1.3.1

  • Addons installed? [Do '/bentobox version' and copy/paste from the console]
    https://paste.helpch.at/iquxuqofup.bash
    BentoBovVersion
    BentoBovVersion

  • Other plugins? [Do '/plugins' and copy/paste from the console]

Additional context
Add any other context about the problem here.

Plugin is affecting worlds that are not listed under config worlds

Description

Describe the bug

Teleporting to other worlds wipes inventory XP and advancements. Teleporting back to previous world does not restore inventory XP or advancements.

Steps to reproduce the behavior

Pre-requisites: BentoBox, BentoBox/InvSwitcher, Multiverse-Core

  1. Be in world
  2. /mvtp creative
  3. Data wiped
  4. /mvtp world or /spawn
  5. Data not restored

Alternatively, with BSkyBlock and EssentialsX added to pre-requisites:

  1. Be in world
  2. /is
  3. Data wiped
  4. /back
  5. Data not restored

This obviously makes Skyblock unplayable as your inventory will just be wiped entirely instead of being restored when you switch back to Skyblock.

Expected behavior

Inventory / XP / Advancements / etc should be restored successfully

Environment

Output of /bbox version (Mandatory)
Running PAPER Invalid.
BentoBox version: 1.16.2
Database: JSON
Loaded Game Worlds:
bskyblock_world (BSkyBlock): Overworld, Nether, The End
Loaded Addons:
Biomes 1.14.0 (ENABLED)
Border 3.1.1 (ENABLED)
BSkyBlock 1.14.4 (ENABLED)
Challenges 0.8.4 (ENABLED)
Chat 1.1.3 (ENABLED)
ControlPanel 1.13.0 (ENABLED)
ExtraMobs 1.11.0.3 (ENABLED)
Greenhouses 1.5.3 (ENABLED)
InvSwitcher 1.10.0 (ENABLED)
IslandFly 1.8.1 (ENABLED)
Level 2.6.3 (ENABLED)
TwerkingForTrees 1.4.1 (ENABLED)
Warps 1.10.2 (ENABLED)

Additional context (Optional)

Reproducible in a fresh install of Paper 1.17 -- have not tested Paper 1.16.5 yet.

Bug Template

Description
Could you please remove gitHub template files from this repo, so it uses generic BentoBox template?

A common inventory world.

Description

Is your feature request related to a problem?

On Discord I was approached by a BentoBox user who wanted a very specific feature from invswitcher.

Functionality that allows taking (or bring to) items from one world to all gamemode worlds.

Describe the solution you'd like us to implement.

I would suggest implementing:
A config option:

common-inventory-world:
   world-name: ""
   take-items: true
   bring-items: false

This option would allow specifying a single common world that allows taking (or bring, or both) items through it.

For troubleshooting:

  1. player items should be transferred only if there is empty space in his inventory. Otherwise, items must stay in world from which travels.
  2. if both options are enabled it should allow to tunnel items through gamemode A to gamemode B by visiting the common world, but not directly from A to B.

This option should not include exp, food, health, advancements, and ender-chests.

Additional context

This is a graphical image that shows the requested functionality.
bentoboxshop-01

Support MultiWorld Money

Is your feature request related to a problem?

because the money comes from someone else world, world + Askyblock

Describe the solution you'd like.

nvSwitcher add money balance

Describe alternatives you've considered.

https://prnt.sc/z141P6vavHLU
https://prnt.sc/lvRy_chfw9fw

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported BentoBox build or Addons.

Other

nvSwitcher add money balance

.jar

hello, It would help if you mad a media fire or some sort of site with a .jar file download. I made a server with my friends and i don't know how to get this working.

Emergency one: InventorySwitcher deletes inventory on WorldSwitch after /bbox reload

Description
InventorySwitcher will not work correctly after using /bbox reload

Steps to reproduce the behavior:

  • Have InventorySwitcher installed
  • Have items in inventory
  • Do /bbox reload
  • Switch to any other world
  • Have your items not transferred (Inventory deleted on every next world switch)

Solution to fix:

  • Restart your server
  • Works!

Expected behavior

  • Work after reload, it was a bad hit for us since peak days are present and 90/110 (online at the moment) players were affected :(

Server Information:

  • Database being used: mySQL / JSON
  • OS: Linux GNU Debian 9 / Windows 10
  • Java Version: Java 10 / Java 8
  • BentoBox version: 1.5.3 / 1.5.3
  • Addons installed:
[16:12:17 INFO]: Running SPIGOT 1.13.2.
[16:12:17 INFO]: BentoBox version: 1.5.3
[16:12:17 INFO]: Loaded Game Worlds:
[16:12:17 INFO]: commands.bentobox.version.game-world
[16:12:17 INFO]: Loaded Addons:
[16:12:17 INFO]: BentoBox-InvSwitcher 0.0.3-SNAPSHOT
[16:12:17 INFO]: BSkyBlock 1.5.0
[16:12:17 INFO]: DimensionalTrees 1.1 - SerbCraft
[16:12:17 INFO]: SerbCraftAddon 2.0
  • Other plugins:
    [16:12:29 INFO]: Plugins (3): Relative_Coordculator, BentoBox, CrateReloaded

Additional context
After this had happened, I immediately went to start my test server and try to replicate this - and yes, it happens after execution of /bbox reload command.
I tagged it as Emergency, as I don't wish for any other server that has players on it to lose their inventory after this.

Refuse to run if database is YAML

Is your feature request related to a problem? Please describe.
Yes. YAML is not supported and if used will cause problems.

Describe the solution you'd like
Disable the add-on and post a message in console.

Describe alternatives you've considered
Trying to make it work using YAML, but it's not an option anymore.

Additional context
See other closed bugs.

ender

Hi can u add ender-chest to?

Supporting extra worlds with corresponding gamemode addons

Is your feature request related to a problem? Please describe.
Yes, it is probably is. Did not test, but the addon probably changes your inventory and food stats if you enter a non BBox Gamemode world.

Describe the solution you'd like
I'd like if it was possible to implement a feature that you can create a world starting with bskyblock_[name] and that the InventoryAddon treats it like an extra world of bskyblock (It is being recognised and sorted due to bskyblock prefix). The point was to auto-connect the inventory, xp and food of BSkyBlock worlds with the new-created one as well.

For an example:

Now you would have your inventory shared between:

  • bskyblock
  • bskyblock_the_nether
  • bskyblock_the_end
  • bskyblock_[new_world]

Tho it doesn't has to be done this way, but I tried to think of an easy solution for this to be supported too. By the way... Of course it doesn't has to be "bskyblock", it can just take the name of the worlds from gamemodes config.yml.

Example of a world name required to exist to so it would be recongised and connectd with the corresponding group of worlds:
`[gamemode_addon_name]_[any-world-name]'

Additional context:
If it can't be done this way, hope some1 will find another way to do it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.