Giter Club home page Giter Club logo

Comments (9)

fpigerre avatar fpigerre commented on July 24, 2024

Aye aye Cap'n!

from commandbouncer.

Carlgo11 avatar Carlgo11 commented on July 24, 2024

@PSGS BUMP 🔔

from commandbouncer.

fpigerre avatar fpigerre commented on July 24, 2024

What do you mean by "Add support for wildcards"?

from commandbouncer.

Carlgo11 avatar Carlgo11 commented on July 24, 2024

Add support for people to do: cmd1: a_command *
And the * would be all the arguments.

could also be used like this: cmd1: * arg1 arg2 arg3

from commandbouncer.

fpigerre avatar fpigerre commented on July 24, 2024

I see. Thanks :)

from commandbouncer.

fpigerre avatar fpigerre commented on July 24, 2024

In CommandListener.java, e.getMessage().equalsIgnoreCase("/" + plugin.getConfig().getString("cmd" + a)) should check the whole command message, including arguments, as the event being handled is PlayerCommandPreprocessEvent. Bukkit.getServer().dispatchCommand(Bukkit.getPlayer(e.getPlayer().getName()), replaceinput2); should also dispatch the whole command from a string, as if it was a raw command entered by a player.

Is getConfig().getStringList("player" + a).get(i).toString(); the reason why extra arguments can't be entered? I don't see where I need to add support for wildcards.

from commandbouncer.

Carlgo11 avatar Carlgo11 commented on July 24, 2024

How do you think they'll be able to act on every possible argument to a command like /ban for example?
/ban psgs /ban Notch /ban carlgo11 /ban Koala
They would need to add a cmd for every possible command. At least that's how they'd have to do atm. There for we need wildcards :P

from commandbouncer.

Carlgo11 avatar Carlgo11 commented on July 24, 2024

We need to convert wildcards from the cmd string in the config. Not the in game command.

from commandbouncer.

fpigerre avatar fpigerre commented on July 24, 2024

Oh, wow. I made a huge mistake...

from commandbouncer.

Related Issues (3)

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.