Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Containers not working in 1.13 #1332

Open
Dinip opened this issue Oct 12, 2018 · 3 comments
Open

Containers not working in 1.13 #1332

Dinip opened this issue Oct 12, 2018 · 3 comments

Comments

@Dinip
Copy link

Dinip commented Oct 12, 2018

Affected Plugin

  • Affected Plugin Name: Factions
  • Affected Plugin Version: 2.14.0

Describe your Environment

  • Server Version: 1.12.2 / 1.13

Steps to Reproduce this Bug

I'm currently running a "vanilla" type server with factions so people can protect their stuff. I now that there is no support for 1.13 but everytings seems do be working except the containers. In 1.12 it blocks people that are not member, leader... from accessing containers (chests...). In 1.13 even setting CHESTS, FURNACES in instance.json "materialsContainer" it does not work. Will it suport 1.13? And how much time it will take?...

@tjhorner
Copy link

tjhorner commented Apr 17, 2019

I can reproduce this issue:

  • Factions Version: 2.14.0
  • Spigot Version: git-Spigot-f09662d-7c395d4

Although, Spigot is telling me I'm 2 versions behind. I will rebuild the server and see if it fixes the issue.

EDIT: Updating to latest Spigot does not fix the issue.

@tjhorner
Copy link

Since Factions has an API, I can try to make a plugin that listens for the events that are broken and fills in the broken functionality with actual working functionality for the time being. The last commit being on Jul 1, 2018 doesn't really inspire hope lol

@tjhorner
Copy link

tjhorner commented Apr 17, 2019

Fix below!

While writing the plugin, I noticed that the chest material shows up as LEGACY_CHEST. Turns out that, for some weird reason, it uses the legacy material IDs instead of the new ones, so I added them to the mstore/factions_mconf/instance.json config file:

"materialsContainer": [
  "DISPENSER",
  "CHEST",
  "FURNACE",
  "JUKEBOX",
  "BREWING_STAND",
  "ENCHANTING_TABLE",
  "ANVIL",
  "BEACON",
  "TRAPPED_CHEST",
  "HOPPER",
  "DROPPER",

  "LEGACY_CHEST",
  "LEGACY_FURNACE",
  "LEGACY_BURNING_FURNACE",
  "LEGACY_JUKEBOX",
  "LEGACY_BREWING_STAND",
  "LEGACY_ENCHANTMENT_TABLE",
  "LEGACY_ANVIL",
  "LEGACY_BEACON",
  "LEGACY_TRAPPED_CHEST",
  "LEGACY_HOPPER",
  "LEGACY_DROPPER"
]

It works. I assume that this also affects the other configuration options starting with material. You can update your own config files by looking up your materials' LEGACY counterparts: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

Edit: here are some other fixed config properties (untested, but probably work):

"materialsEditOnInteract": [
  "NOTE_BLOCK",
  "CAULDRON",

  "LEGACY_NOTE_BLOCK",
  "LEGACY_SOIL",
  "LEGACY_DIODE_BLOCK_OFF",
  "LEGACY_DIODE_BLOCK_ON"
],
"materialsEditTools": [
  "FLINT_AND_STEEL",
  "BUCKET",
  "WATER_BUCKET",
  "LAVA_BUCKET",

  "LEGACY_FIREBALL",
  "LEGACY_FLINT_AND_STEEL",
  "LEGACY_BUCKET",
  "LEGACY_WATER_BUCKET",
  "LEGACY_LAVA_BUCKET"
],
"materialsDoor": [
  "ACACIA_DOOR",
  "SPRUCE_DOOR",
  "BIRCH_DOOR",
  "DARK_OAK_DOOR",
  "IRON_DOOR",
  "JUNGLE_DOOR",

  "ACACIA_TRAPDOOR",
  "SPRUCE_TRAPDOOR",
  "BIRCH_TRAPDOOR",
  "DARK_OAK_TRAPDOOR",
  "IRON_TRAPDOOR",
  "JUNGLE_TRAPDOOR",

  "ACACIA_FENCE_GATE",
  "SPRUCE_FENCE_GATE",
  "BIRCH_FENCE_GATE",
  "DARK_OAK_FENCE_GATE",
  "IRON_FENCE_GATE",
  "JUNGLE_FENCE_GATE",

  "LEGACY_WOODEN_DOOR",
  "LEGACY_TRAP_DOOR",
  "LEGACY_FENCE_GATE"
]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants