Git Product home page Git Product logo

Comments (7)

Wundero avatar Wundero commented on July 17, 2024

Try using the API method api.setNametag(player, null, null);. It will remove any prefix or suffix the player has. You can combine it with a getter method to maintain one or the other, like this: api.setNametag(player, null, api.getSuffix(player));

from nametagedit.

sgtcaze avatar sgtcaze commented on July 17, 2024

The API does not accept null arguments. Null args are replaced with "". Ii can add in a method to clear the nametag, if you like.

from nametagedit.

TagCraftMC avatar TagCraftMC commented on July 17, 2024

Yes please sgtcaze.
Would it also be possible(sounds a little silly) to add method to save the new prefix/suffix/nametag to the current file system (whether it be Flatfile or MySQL).
I'd rather keep all my changes in the one place rather then setting up a separate DB or Config.

from nametagedit.

JustOneMoreBlock avatar JustOneMoreBlock commented on July 17, 2024

@TagCraftMC You don't need separate databases or configs as long as the groups and permissions are within the same server, you can remotely connect to those servers and retrieve the same data.

Most shared hosts have their database server open remotely, so if you have multiple servers with them and you can create one database for each server. Just create one database and usually create it on your BungeeCord server and configure all your servers to remotely connect to that database. You can cross database/cross network as long as the database is open remotely.

from nametagedit.

JustOneMoreBlock avatar JustOneMoreBlock commented on July 17, 2024

@TagCraftMC do you still need this? We may still add it on our next release.

from nametagedit.

TagCraftMC avatar TagCraftMC commented on July 17, 2024

Setting the players prefix/suffix to null or a method to clear it? Yea, that would be great.

from nametagedit.

sgtcaze avatar sgtcaze commented on July 17, 2024

Sorry for the delay. This has been added in this commit:

15e1846

from nametagedit.

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.