Tabnine Logo
Score.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
net.md_5.bungee.api.score.Score
constructor

Best Java code snippets using net.md_5.bungee.api.score.Score.<init> (Showing top 2 results out of 315)

origin: SpigotMC/BungeeCord

@Override
public void handle(ScoreboardScore score) throws Exception
{
  Scoreboard serverScoreboard = con.getServerSentScoreboard();
  switch ( score.getAction() )
  {
    case 0:
      Score s = new Score( score.getItemName(), score.getScoreName(), score.getValue() );
      serverScoreboard.removeScore( score.getItemName() );
      serverScoreboard.addScore( s );
      break;
    case 1:
      serverScoreboard.removeScore( score.getItemName() );
      break;
    default:
      throw new IllegalArgumentException( "Unknown scoreboard action: " + score.getAction() );
  }
}
origin: WaterfallMC/Waterfall-Old

@Override
public void handle(ScoreboardScore score) throws Exception
{
  Scoreboard serverScoreboard = con.getServerSentScoreboard();
  switch ( score.getAction() )
  {
    case 0:
      Score s = new Score( score.getItemName(), score.getScoreName(), score.getValue() );
      serverScoreboard.removeScore( score.getItemName() );
      serverScoreboard.addScore( s );
      break;
    case 1:
      serverScoreboard.removeScore( score.getItemName() );
      break;
    default:
      throw new IllegalArgumentException( "Unknown scoreboard action: " + score.getAction() );
  }
}
net.md_5.bungee.api.scoreScore<init>

Popular methods of Score

  • getItemName
  • getScoreName
  • getValue

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JTextField (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now