Code Monkey home page Code Monkey logo

Comments (12)

CheatSupport avatar CheatSupport commented on July 28, 2024

Just noticed, in "FBasics" there is the code:
WILDERNESS(CmdWilderness.class, new String[]{"wilderness", "wild", "w"});

if it helps.

from combattagplus.

Techcable avatar Techcable commented on July 28, 2024

What is CommandTagPlus?

I bet it's an issue with the config file encoding.
Windows prefers UTF-16, but linux uses (the far supperior) UTF-8.
If you're editing with notepad, make sure to save the file as 'UTF-8', not 'Unicode' (which is actually UTF-16).

from combattagplus.

CheatSupport avatar CheatSupport commented on July 28, 2024

@Techcable I meant FBasics, just got confused. Yeah I have just tried editing the fbasics plugin code myself now and I will get back to you. Instead I am going to make /wild a command that is using commands.yml as part of bukkit.

Windows somehow blocks /wild and linux doesn't - using same .jars and same configurations, very odd

from combattagplus.

Techcable avatar Techcable commented on July 28, 2024

Again, have you checked that the config file is saved as UTF-8 on windows? Regardless, we should probably support UTF-16 natively, since it's so common.

from combattagplus.

CheatSupport avatar CheatSupport commented on July 28, 2024

Yeah both saved in UTF-8, still doesn't fix the /wild command issue. :(

from combattagplus.

Techcable avatar Techcable commented on July 28, 2024

Actually, it looks like the problem is the opposite of what I expected. Since we don't specify a charset explicitly, Java assumes UTF-16 on windows and UTF-8 on linux. I'll fix it by using UTF-8 as default, and UTF-16 as a fallback.

from combattagplus.

CheatSupport avatar CheatSupport commented on July 28, 2024

Thanks that will fix blocking /wild? I have been so confused haha. @Techcable

from combattagplus.

Techcable avatar Techcable commented on July 28, 2024

It looks like it's actually a bug in bukkit I can't fix from inside the plugin.
JavaPlugin.reloadConfig() doesn't support UTF-8 on windows, and I can't override it.
However, you can't use UTF-16, since the plugin saves the file as UTF-8.
Unless bukkit fixes it, you'll have to just avoid windows if you want proper unicode support.

EDIT 1: Nevermind, bukkit actually does support unicode properly. I was looking at an old version. However, it's still probably some mysterious encoding issue that's not really our fault. One more idea would be to change the default encoding to UTF-8 by adding -Dfile.encoding=UTF-8 at the command line.

from combattagplus.

CheatSupport avatar CheatSupport commented on July 28, 2024

@Techcable I use linux, but what I'm saying is - windows is blocking /wild whereas combattagplus on linux won't. I really need to try and fix this and I can't change anything for command line. This: https://dev.bukkit.org/projects/combatlog blocks it somehow, but clearly this plugin isn't as great as combattagplus. Please help, much appreciated

from combattagplus.

Byteflux avatar Byteflux commented on July 28, 2024

I'm on Linux. I use FBasics. I block wild and a bunch of other commands that are provided by FBasics in combat. I can't reproduce this issue. Download the latest dev build. Remove all plugins except CombatTagPlus and FBasics. Use a fresh CombatTagPlus configuration. This issue is very clearly specific to your setup.

from combattagplus.

CheatSupport avatar CheatSupport commented on July 28, 2024

@Techcable I indeed use linux but what I'm saying is my issue doesn't exist on windows with the /wild blocking

from combattagplus.

Techcable avatar Techcable commented on July 28, 2024

@CheatSupport I'll admit that's very odd, but we still can't reproduce this issue.
As @Byteflux said, we need you to check if this issue occurs with the latest FBasics and CombatTagPlus, no other plugins, and a clean configuration.
Even if you can reproduce it, there's still not much we can do unless you find a way for us to reproduce it on our computers.

Relevant XKCD

from combattagplus.

Related Issues (20)

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.